The Unified and Autonomous Development Platform
Group jest stats of same type into one chart
Robin Shene45cb721fd72
diff --git a/pom.xml b/pom.xmlindex 069d5ab28b..746faa00e5 100644--- a/pom.xml+++ b/pom.xml@@ -9,7 +9,7 @@<version>1.0.5</version></parent><artifactId>server</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version><packaging>pom</packaging><build><finalName>${project.groupId}.${project.artifactId}-${project.version}</finalName>diff --git a/server-core/pom.xml b/server-core/pom.xmlindex c6bb95f9d0..a14a18af35 100644--- a/server-core/pom.xml+++ b/server-core/pom.xml@@ -7,7 +7,7 @@<parent><groupId>io.onedev</groupId><artifactId>server</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><build><plugins>diff --git a/server-core/src/main/java/io/onedev/server/model/JestTestMetric.java b/server-core/src/main/java/io/onedev/server/model/JestTestMetric.javaindex eeceb9843d..fead4a681d 100644--- a/server-core/src/main/java/io/onedev/server/model/JestTestMetric.java+++ b/server-core/src/main/java/io/onedev/server/model/JestTestMetric.java@@ -52,7 +52,8 @@ public class JestTestMetric extends AbstractEntity implements BuildMetric {this.reportName = reportName;}- @MetricIndicator(order=100, valueFormatter=BuildMetric.FORMAT_PERCENTAGE, maxValue=100)+ @MetricIndicator(order=100, group="Success Rate", name="Test Suite", color="#1BC5BD",+ valueFormatter=BuildMetric.FORMAT_PERCENTAGE, maxValue=100, minValue=0)public int getTestSuiteSuccessRate() {return testSuiteSuccessRate;}@@ -61,7 +62,8 @@ public class JestTestMetric extends AbstractEntity implements BuildMetric {this.testSuiteSuccessRate = testSuiteSuccessRate;}- @MetricIndicator(order=200, valueFormatter=BuildMetric.FORMAT_PERCENTAGE, maxValue=100)+ @MetricIndicator(order=200, group="Success Rate", name="Test Case", color="#F64E60",+ valueFormatter=BuildMetric.FORMAT_PERCENTAGE, maxValue=100, minValue=0)public int getTestCaseSuccessRate() {return testCaseSuccessRate;}@@ -70,16 +72,7 @@ public class JestTestMetric extends AbstractEntity implements BuildMetric {this.testCaseSuccessRate = testCaseSuccessRate;}- @MetricIndicator(order=300, valueFormatter=BuildMetric.FORMAT_DURATION)- public int getTotalTestDuration() {- return totalTestDuration;- }-- public void setTotalTestDuration(int totalTestDuration) {- this.totalTestDuration = totalTestDuration;- }-- @MetricIndicator(order=400)+ @MetricIndicator(order=400, group="Total Number", name="Test Suite", color="#1BC5BD")public int getNumOfTestSuites() {return numOfTestSuites;}@@ -88,7 +81,7 @@ public class JestTestMetric extends AbstractEntity implements BuildMetric {this.numOfTestSuites = numOfTestSuites;}- @MetricIndicator(order=500)+ @MetricIndicator(order=500, group="Total Number", name="Test Case", color="#F64E60")public int getNumOfTestCases() {return numOfTestCases;}@@ -97,4 +90,13 @@ public class JestTestMetric extends AbstractEntity implements BuildMetric {this.numOfTestCases = numOfTestCases;}+ @MetricIndicator(order=600, valueFormatter=BuildMetric.FORMAT_DURATION)+ public int getTotalTestDuration() {+ return totalTestDuration;+ }++ public void setTotalTestDuration(int totalTestDuration) {+ this.totalTestDuration = totalTestDuration;+ }+}diff --git a/server-core/src/main/java/io/onedev/server/util/MetricIndicator.java b/server-core/src/main/java/io/onedev/server/util/MetricIndicator.javaindex 2f352174a0..a656a59367 100644--- a/server-core/src/main/java/io/onedev/server/util/MetricIndicator.java+++ b/server-core/src/main/java/io/onedev/server/util/MetricIndicator.java@@ -17,5 +17,9 @@ public @interface MetricIndicator {String valueFormatter() default "";+ String group() default "";++ String color() default "#8950FC";+int order() default 100;}diff --git a/server-core/src/main/java/io/onedev/server/web/component/chart/line/LineSeries.java b/server-core/src/main/java/io/onedev/server/web/component/chart/line/LineSeries.javaindex 8a9276787b..92100a3455 100644--- a/server-core/src/main/java/io/onedev/server/web/component/chart/line/LineSeries.java+++ b/server-core/src/main/java/io/onedev/server/web/component/chart/line/LineSeries.java@@ -1,6 +1,7 @@package io.onedev.server.web.component.chart.line;import java.io.Serializable;+import java.util.List;import java.util.Map;import javax.annotation.Nullable;@@ -9,9 +10,11 @@ public class LineSeries implements Serializable {private static final long serialVersionUID = 1L;- private final String name;+ private final String seriesName;- private final Map<String, Integer> values;+ private final List<String> lineNames;++ private final Map<String, List<Integer>> lineValues;private final String valueFormatter;@@ -19,28 +22,39 @@ public class LineSeries implements Serializable {private final Integer maxValue;- public LineSeries(@Nullable String name, Map<String, Integer> values, String valueFormatter,- @Nullable Integer minValue, @Nullable Integer maxValue) {- this.name = name;- this.values = values;+ private final List<String> lineColors;++ public LineSeries(@Nullable String seriesName, List<String> lineNames,+ Map<String, List<Integer>> lineValues, @Nullable String valueFormatter,+ @Nullable Integer minValue, @Nullable Integer maxValue,+ List<String> lineColors) {+ this.seriesName = seriesName;+ this.lineNames = lineNames;+ this.lineValues = lineValues;this.valueFormatter = valueFormatter;this.minValue = minValue;this.maxValue = maxValue;+ this.lineColors = lineColors;}- public Map<String, Integer> getValues() {- return values;+ public String getSeriesName() {+ return seriesName;}- public String getValueFormatter() {- return valueFormatter;+ public List<String> getLineNames() {+ return lineNames;+ }++ public Map<String, List<Integer>> getLineValues() {+ return lineValues;}@Nullable- public String getName() {- return name;+ public String getValueFormatter() {+ return valueFormatter;}+ @Nullablepublic Integer getMinValue() {return minValue;}@@ -50,4 +64,8 @@ public class LineSeries implements Serializable {return maxValue;}+ public List<String> getLineColors() {+ return lineColors;+ }+}diff --git a/server-core/src/main/java/io/onedev/server/web/component/chart/line/line-chart.js b/server-core/src/main/java/io/onedev/server/web/component/chart/line/line-chart.jsindex d365e7406d..230b144826 100644--- a/server-core/src/main/java/io/onedev/server/web/component/chart/line/line-chart.js+++ b/server-core/src/main/java/io/onedev/server/web/component/chart/line/line-chart.js@@ -2,6 +2,8 @@ onedev.server.lineChart = {onDomReady: function(containerId, lineSeries, valueFormatter) {var $chart = $("#" + containerId + ">.line-chart");+ console.log(lineSeries);+if (lineSeries) {var chart = echarts.init($chart[0]);option = {@@ -16,24 +18,55 @@ onedev.server.lineChart = {show:false},},- series: [{- data: [],- type: 'line',- smooth: true,- lineStyle: {- color: '#3699FF'- },- itemStyle: {- color: '#3699FF'- }- }]+ series: []};- if (lineSeries.name) {+ if (lineSeries.lineNames.length > 1) {+ option.legend = {+ show: true,+ x: "center",+ data: []+ }+ for (const i in lineSeries.lineNames)+ option.legend.data.push(lineSeries.lineNames[i]);+ if (lineSeries.seriesName) {+ option.grid = {+ top: 80+ }+ option.title = {+ text: lineSeries.seriesName,+ left: 'center'+ }+ option.legend.top = 30;+ }+ } else {+ let title = lineSeries.lineNames[0];+ if (lineSeries.seriesName)+ title = lineSeries.seriesName + " / " + title;option.title = {- text: lineSeries.name,+ text: title,left: 'center'}+ }++ for (const i in lineSeries.lineNames) {+ option.series.push({+ name: lineSeries.lineNames[i],+ data: [],+ type: 'line',+ smooth: true,+ lineStyle: {+ color: lineSeries.lineColors[i]+ },+ itemStyle: {+ color: lineSeries.lineColors[i]+ }+ });}+ for (const key in lineSeries.lineValues) {+ option.xAxis.data.push(key);+ for (const i in lineSeries.lineNames)+ option.series[i].data.push(lineSeries.lineValues[key][i]);+ };if (valueFormatter) {option.yAxis.axisLabel = {formatter: valueFormatter@@ -44,12 +77,10 @@ onedev.server.lineChart = {if (lineSeries.maxValue)option.yAxis.max = lineSeries.maxValue;- for (const key in lineSeries.values) {- option.xAxis.data.push(key);- option.series[0].data.push(lineSeries.values[key]);- };chart.setOption(option);+ console.log(option);+$chart.on("resized", function() {chart.resize();});diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/stats/buildmetric/BuildMetricStatsPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/stats/buildmetric/BuildMetricStatsPage.javaindex dbe567e1d5..600b270332 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/stats/buildmetric/BuildMetricStatsPage.java+++ b/server-core/src/main/java/io/onedev/server/web/page/project/stats/buildmetric/BuildMetricStatsPage.java@@ -10,7 +10,6 @@ import java.util.HashMap;import java.util.LinkedHashMap;import java.util.List;import java.util.Map;-import java.util.stream.Collectors;import javax.annotation.Nullable;@@ -29,6 +28,9 @@ import org.apache.wicket.model.LoadableDetachableModel;import org.apache.wicket.model.PropertyModel;import org.apache.wicket.request.mapper.parameter.PageParameters;+import com.google.common.base.Preconditions;+import com.google.common.collect.Lists;+import io.onedev.server.OneDev;import io.onedev.server.entitymanager.BuildMetricManager;import io.onedev.server.model.AbstractEntity;@@ -148,68 +150,114 @@ public abstract class BuildMetricStatsPage<T extends AbstractEntity> extends Pro@Overrideprotected List<LineSeries> load() {+ List<LineSeries> serieses = new ArrayList<>();if (parsedQuery != null) {- List<Pair<LineSeries, Integer>> serieses = new ArrayList<>();- Map<Integer, T> stats = OneDev.getInstance(BuildMetricManager.class).queryStats(getProject(), metricClass, parsedQuery);+ List<Pair<Method, Integer>> metricGetters = new ArrayList<>();for (Method getter: BeanUtils.findGetters(metricClass)) {MetricIndicator indicator = getter.getAnnotation(MetricIndicator.class);- if (indicator != null) {- Integer maxValue = indicator.maxValue();- if (maxValue == Integer.MIN_VALUE)- maxValue = null;- Integer minValue = indicator.minValue();- if (minValue == Integer.MAX_VALUE)- minValue = null;+ if (indicator != null)+ metricGetters.add(new Pair<>(getter, indicator.order()));+ }+ Collections.sort(metricGetters, new Comparator<Pair<Method, Integer>>() {++ @Override+ public int compare(Pair<Method, Integer> o1, Pair<Method, Integer> o2) {+ return o1.getSecond() - o2.getSecond();+ }++ });++ List<List<Method>> groupedMetricGetters = new ArrayList<>();+ metricGetters.stream().map(it->it.getFirst()).forEach(it-> {+ MetricIndicator indicator = Preconditions.checkNotNull(it.getAnnotation(MetricIndicator.class));+ if (indicator.group().length() != 0) {+ List<Method> metricGettersOfGroup = null;+ for (List<Method> each: groupedMetricGetters) {+ if (each.get(0).getAnnotation(MetricIndicator.class).group().equals(indicator.group())) {+ metricGettersOfGroup = each;+ break;+ }+ }+ if (metricGettersOfGroup == null) {+ metricGettersOfGroup = new ArrayList<>();+ groupedMetricGetters.add(metricGettersOfGroup);+ }+ metricGettersOfGroup.add(it);+ } else {+ groupedMetricGetters.add(Lists.newArrayList(it));+ }+ });++ Map<Integer, T> stats = OneDev.getInstance(BuildMetricManager.class)+ .queryStats(getProject(), metricClass, parsedQuery);++ for (List<Method> group: groupedMetricGetters) {+ MetricIndicator indicator = group.get(0).getAnnotation(MetricIndicator.class);++ String groupName = indicator.group();+ if (groupName.length() == 0)+ groupName = null;++ Integer maxValue = indicator.maxValue();+ if (maxValue == Integer.MIN_VALUE)+ maxValue = null;++ Integer minValue = indicator.minValue();+ if (minValue == Integer.MAX_VALUE)+ minValue = null;++ String valueFormatter = indicator.valueFormatter();+ if (valueFormatter.length() == 0)+ valueFormatter = null;++ List<String> lineNames = new ArrayList<>();+ List<String> lineColors = new ArrayList<>();+ for (Method getter: group) {+ indicator = getter.getAnnotation(MetricIndicator.class);String name = indicator.name();if (name.length() == 0)name = BeanUtils.getDisplayName(getter);-- Map<Integer, Integer> discreteValues = new HashMap<>();- for (Map.Entry<Integer, T> entry: stats.entrySet()) {+ lineNames.add(name);+ lineColors.add(indicator.color());+ }++ Map<Integer, List<Integer>> discreteValues = new HashMap<>();+ for (Map.Entry<Integer, T> entry: stats.entrySet()) {+ List<Integer> lineValues = new ArrayList<>();+ for (Method getter: group) {try {- discreteValues.put(entry.getKey(), (int) getter.invoke(entry.getValue()));+ lineValues.add((int) getter.invoke(entry.getValue()));} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {throw new RuntimeException(e);}}- Map<String, Integer> completeValues = new LinkedHashMap<>();- if (!discreteValues.isEmpty()) {- int minDayValue = Collections.min(discreteValues.keySet());- int maxDayValue = Collections.max(discreteValues.keySet());- int lastValue = 0;- int currentDayValue = minDayValue;- while (currentDayValue<=maxDayValue) {- Integer currentValue = discreteValues.get(currentDayValue);- if (currentValue == null)- currentValue = lastValue;- else- lastValue = currentValue;- Day currentDay = new Day(currentDayValue);- String currentDayLabel = String.format("%s-%s-%s",- currentDay.getYear()%100, currentDay.getMonthOfYear()+1, currentDay.getDayOfMonth());- completeValues.put(currentDayLabel, currentValue);- currentDayValue = new Day(currentDay.getDate().plusDays(1)).getValue();- }- }- String valueFormatter = indicator.valueFormatter();- if (valueFormatter.length() == 0)- valueFormatter = null;- LineSeries series = new LineSeries(name, completeValues, valueFormatter, minValue, maxValue);- serieses.add(new Pair<>(series, indicator.order()));- }- }- Collections.sort(serieses, new Comparator<Pair<LineSeries, Integer>>() {-- @Override- public int compare(Pair<LineSeries, Integer> o1, Pair<LineSeries, Integer> o2) {- return o1.getSecond() - o2.getSecond();+ discreteValues.put(entry.getKey(), lineValues);}- });- return serieses.stream().map(it->it.getFirst()).collect(Collectors.toList());- } else {- return new ArrayList<>();- }+ Map<String, List<Integer>> completeValues = new LinkedHashMap<>();+ if (!discreteValues.isEmpty()) {+ int minDayValue = Collections.min(discreteValues.keySet());+ int maxDayValue = Collections.max(discreteValues.keySet());+ List<Integer> lastValues = null;+ int currentDayValue = minDayValue;+ while (currentDayValue<=maxDayValue) {+ List<Integer> currentValues = discreteValues.get(currentDayValue);+ if (currentValues == null)+ currentValues = lastValues;+ else+ lastValues = currentValues;+ Day currentDay = new Day(currentDayValue);+ String currentDayLabel = String.format("%02d-%02d-%02d",+ currentDay.getYear()%100, currentDay.getMonthOfYear()+1, currentDay.getDayOfMonth());+ completeValues.put(currentDayLabel, currentValues);+ currentDayValue = new Day(currentDay.getDate().plusDays(1)).getValue();+ }+ }+ serieses.add(new LineSeries(groupName, lineNames, completeValues, valueFormatter,+ minValue, maxValue, lineColors));+ }+ }+ return serieses;}}) {diff --git a/server-core/src/main/java/io/onedev/server/web/page/test/TestPage.html b/server-core/src/main/java/io/onedev/server/web/page/test/TestPage.htmlindex b47194918b..5fd34c3773 100644--- a/server-core/src/main/java/io/onedev/server/web/page/test/TestPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/test/TestPage.html@@ -1,2 +1,3 @@<wicket:extend>+ <div wicket:id="chart"></div></wicket:extend>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/page/test/TestPage.java b/server-core/src/main/java/io/onedev/server/web/page/test/TestPage.javaindex 066be5dd6a..df6209097a 100644--- a/server-core/src/main/java/io/onedev/server/web/page/test/TestPage.java+++ b/server-core/src/main/java/io/onedev/server/web/page/test/TestPage.java@@ -1,10 +1,19 @@package io.onedev.server.web.page.test;+import java.util.LinkedHashMap;+import java.util.List;+import java.util.Map;+import org.apache.wicket.markup.head.IHeaderResponse;import org.apache.wicket.markup.head.JavaScriptHeaderItem;import org.apache.wicket.markup.head.OnDomReadyHeaderItem;+import org.apache.wicket.model.Model;import org.apache.wicket.request.mapper.parameter.PageParameters;+import com.google.common.collect.Lists;++import io.onedev.server.web.component.chart.line.LineChartPanel;+import io.onedev.server.web.component.chart.line.LineSeries;import io.onedev.server.web.page.base.BasePage;@SuppressWarnings("serial")@@ -17,6 +26,17 @@ public class TestPage extends BasePage {@Overrideprotected void onInitialize() {super.onInitialize();++ Map<String, List<Integer>> lineValues = new LinkedHashMap<>();+ lineValues.put("Mon", Lists.newArrayList(0, 100));+ lineValues.put("Tue", Lists.newArrayList(25, 75));+ lineValues.put("Wed", Lists.newArrayList(50, 50));+ lineValues.put("Thu", Lists.newArrayList(75, 25));+ lineValues.put("Fri", Lists.newArrayList(100, 0));++ LineSeries lineSeries = new LineSeries("Success Rate", Lists.newArrayList("Test Suite", "Test Case"),+ lineValues, null, 20, 100, Lists.newArrayList("red", "blue"));+ add(new LineChartPanel("chart", Model.of(lineSeries)));}@Overridediff --git a/server-plugin/pom.xml b/server-plugin/pom.xmlindex 315b97329a..eebb32a562 100644--- a/server-plugin/pom.xml+++ b/server-plugin/pom.xml@@ -6,7 +6,7 @@<parent><groupId>io.onedev</groupId><artifactId>server</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><dependencies><dependency>diff --git a/server-plugin/server-plugin-archetype/pom.xml b/server-plugin/server-plugin-archetype/pom.xmlindex 004b05196b..2437afde0c 100644--- a/server-plugin/server-plugin-archetype/pom.xml+++ b/server-plugin/server-plugin-archetype/pom.xml@@ -6,7 +6,7 @@<parent><groupId>io.onedev</groupId><artifactId>server-plugin</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><build><resources>diff --git a/server-plugin/server-plugin-authenticator-ldap/pom.xml b/server-plugin/server-plugin-authenticator-ldap/pom.xmlindex 2ebcaa1fb4..ddc964b071 100644--- a/server-plugin/server-plugin-authenticator-ldap/pom.xml+++ b/server-plugin/server-plugin-authenticator-ldap/pom.xml@@ -5,7 +5,7 @@<parent><groupId>io.onedev</groupId><artifactId>server-plugin</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><properties><moduleClass>io.onedev.server.plugin.authenticator.ldap.LdapModule</moduleClass>diff --git a/server-plugin/server-plugin-buildspec-gradle/pom.xml b/server-plugin/server-plugin-buildspec-gradle/pom.xmlindex 75c02dfa7a..f4f90cb63c 100644--- a/server-plugin/server-plugin-buildspec-gradle/pom.xml+++ b/server-plugin/server-plugin-buildspec-gradle/pom.xml@@ -5,7 +5,7 @@<parent><groupId>io.onedev</groupId><artifactId>server-plugin</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><dependencies><dependency>diff --git a/server-plugin/server-plugin-buildspec-maven/pom.xml b/server-plugin/server-plugin-buildspec-maven/pom.xmlindex ee3175c569..0833f9edc8 100644--- a/server-plugin/server-plugin-buildspec-maven/pom.xml+++ b/server-plugin/server-plugin-buildspec-maven/pom.xml@@ -5,7 +5,7 @@<parent><groupId>io.onedev</groupId><artifactId>server-plugin</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><properties><moduleClass>io.onedev.server.plugin.buildspec.maven.MavenModule</moduleClass>diff --git a/server-plugin/server-plugin-buildspec-node/pom.xml b/server-plugin/server-plugin-buildspec-node/pom.xmlindex 1974a3cb0a..4d0778f70f 100644--- a/server-plugin/server-plugin-buildspec-node/pom.xml+++ b/server-plugin/server-plugin-buildspec-node/pom.xml@@ -5,7 +5,7 @@<parent><groupId>io.onedev</groupId><artifactId>server-plugin</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><properties><moduleClass>io.onedev.server.plugin.buildspec.node.NodePluginModule</moduleClass>diff --git a/server-plugin/server-plugin-executor-docker/pom.xml b/server-plugin/server-plugin-executor-docker/pom.xmlindex 5e17e75b04..1a9b298b57 100644--- a/server-plugin/server-plugin-executor-docker/pom.xml+++ b/server-plugin/server-plugin-executor-docker/pom.xml@@ -5,7 +5,7 @@<parent><groupId>io.onedev</groupId><artifactId>server-plugin</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><properties><moduleClass>io.onedev.server.plugin.docker.DockerModule</moduleClass>diff --git a/server-plugin/server-plugin-executor-kubernetes/pom.xml b/server-plugin/server-plugin-executor-kubernetes/pom.xmlindex fedbceb9f1..3628e900c8 100644--- a/server-plugin/server-plugin-executor-kubernetes/pom.xml+++ b/server-plugin/server-plugin-executor-kubernetes/pom.xml@@ -6,7 +6,7 @@<parent><groupId>io.onedev</groupId><artifactId>server-plugin</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><properties><moduleClass>io.onedev.server.plugin.executor.kubernetes.KubernetesModule</moduleClass>diff --git a/server-plugin/server-plugin-report-html/pom.xml b/server-plugin/server-plugin-report-html/pom.xmlindex bd9f7c3b18..440bc6a24b 100644--- a/server-plugin/server-plugin-report-html/pom.xml+++ b/server-plugin/server-plugin-report-html/pom.xml@@ -6,7 +6,7 @@<parent><groupId>io.onedev</groupId><artifactId>server-plugin</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><properties><moduleClass>io.onedev.server.plugin.report.html.HtmlReportModule</moduleClass>diff --git a/server-plugin/server-plugin-report-jest/pom.xml b/server-plugin/server-plugin-report-jest/pom.xmlindex 825ae3668d..9a3a1dc29d 100644--- a/server-plugin/server-plugin-report-jest/pom.xml+++ b/server-plugin/server-plugin-report-jest/pom.xml@@ -5,7 +5,7 @@<parent><groupId>io.onedev</groupId><artifactId>server-plugin</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><properties><moduleClass>io.onedev.server.plugin.report.jest.JestTestReportModule</moduleClass>diff --git a/server-plugin/server-plugin-report-markdown/pom.xml b/server-plugin/server-plugin-report-markdown/pom.xmlindex 33c74683af..ae20727dc9 100644--- a/server-plugin/server-plugin-report-markdown/pom.xml+++ b/server-plugin/server-plugin-report-markdown/pom.xml@@ -5,7 +5,7 @@<parent><groupId>io.onedev</groupId><artifactId>server-plugin</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><properties><moduleClass>io.onedev.server.plugin.report.markdown.MarkdownReportModule</moduleClass>diff --git a/server-plugin/server-plugin-sso-openid/pom.xml b/server-plugin/server-plugin-sso-openid/pom.xmlindex 7bd9f1212d..dded84f274 100644--- a/server-plugin/server-plugin-sso-openid/pom.xml+++ b/server-plugin/server-plugin-sso-openid/pom.xml@@ -6,7 +6,7 @@<parent><groupId>io.onedev</groupId><artifactId>server-plugin</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><dependencies><dependency>diff --git a/server-product/pom.xml b/server-product/pom.xmlindex 5e7f8331b4..982cbc2373 100644--- a/server-product/pom.xml+++ b/server-product/pom.xml@@ -7,7 +7,7 @@<parent><groupId>io.onedev</groupId><artifactId>server</artifactId>- <version>4.1.1</version>+ <version>4.1.2</version></parent><dependencies><dependency>