Skip to content

Commit 01148d6

Browse files
authored
Merge pull request #1928 from jenkinsci/13.0.0
13.0.0
2 parents f93deb5 + a74f8b4 commit 01148d6

File tree

71 files changed

+686
-265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+686
-265
lines changed

plugin/pom.xml

+16-12
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<parent>
66
<groupId>org.jvnet.hudson.plugins</groupId>
77
<artifactId>analysis-pom</artifactId>
8-
<version>9.0.0</version>
8+
<version>10.4.0</version>
99
<relativePath />
1010
</parent>
1111

1212
<groupId>io.jenkins.plugins</groupId>
1313
<artifactId>warnings-ng</artifactId>
14-
<version>${revision}${changelist}</version>
14+
<version>12.0.0-SNAPSHOT</version>
1515
<packaging>hpi</packaging>
1616
<name>Warnings Plugin</name>
1717

@@ -38,17 +38,15 @@
3838
<scm>
3939
<connection>scm:git:https://github.com/jenkinsci/${project.artifactId}-plugin.git</connection>
4040
<developerConnection>scm:git:[email protected]:jenkinsci/${project.artifactId}-plugin.git</developerConnection>
41-
<tag>v11.10.0</tag>
41+
<tag>HEAD</tag>
4242
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
4343
</scm>
4444

4545
<properties>
46-
<revision>11.13.0</revision>
47-
<changelist>-SNAPSHOT</changelist>
4846
<module.name>${project.groupId}.warnings.ng</module.name>
4947

50-
<analysis-model-api.version>12.9.1</analysis-model-api.version>
51-
<analysis-model-tests.version>${analysis-model-api.version}</analysis-model-tests.version>
48+
<analysis-model-api.version>13.0.0</analysis-model-api.version>
49+
<analysis-model-tests.version>13.0.0</analysis-model-tests.version>
5250
<pull-request-monitoring.version>335.v525cd64ec76b_</pull-request-monitoring.version>
5351

5452
<eclipse-collections.version>9.2.0</eclipse-collections.version>
@@ -60,8 +58,6 @@
6058
<testcontainers.version>1.20.4</testcontainers.version>
6159

6260
<!-- Jenkins Plug-in Dependencies Versions -->
63-
<git-forensics.version>2.2.1</git-forensics.version>
64-
6561
<flexible-publish.version>0.15.2</flexible-publish.version>
6662
<form-element-path.version>1.11</form-element-path.version>
6763

@@ -99,7 +95,8 @@
9995
<dependency>
10096
<groupId>io.jenkins.plugins</groupId>
10197
<artifactId>plugin-util-api</artifactId>
102-
<version>5.1.0</version>
98+
<!-- TODO: remove the version when a matching BOM is available -->
99+
<version>6.0.0</version>
103100
</dependency>
104101
<dependency>
105102
<groupId>io.jenkins.plugins</groupId>
@@ -160,6 +157,8 @@
160157
<dependency>
161158
<groupId>io.jenkins.plugins</groupId>
162159
<artifactId>forensics-api</artifactId>
160+
<!-- TODO: remove the version when a matching BOM is available -->
161+
<version>3.0.0</version>
163162
</dependency>
164163
<dependency>
165164
<groupId>io.jenkins.plugins</groupId>
@@ -219,12 +218,15 @@
219218
<groupId>io.jenkins.plugins</groupId>
220219
<artifactId>forensics-api</artifactId>
221220
<classifier>tests</classifier>
221+
<!-- TODO: remove the version when a matching BOM is available -->
222+
<version>3.0.0</version>
222223
<scope>test</scope>
223224
</dependency>
224225
<dependency>
225226
<groupId>io.jenkins.plugins</groupId>
226227
<artifactId>git-forensics</artifactId>
227-
<version>${git-forensics.version}</version>
228+
<!-- TODO: remove the version when a matching BOM is available -->
229+
<version>3.1.0</version>
228230
<scope>test</scope>
229231
</dependency>
230232
<dependency>
@@ -305,7 +307,8 @@
305307
<dependency>
306308
<groupId>io.jenkins.plugins</groupId>
307309
<artifactId>plugin-util-api</artifactId>
308-
<version>5.1.0</version>
310+
<!-- TODO: remove the version when a matching BOM is available -->
311+
<version>6.0.0</version>
309312
<classifier>tests</classifier>
310313
<scope>test</scope>
311314
<exclusions>
@@ -578,6 +581,7 @@
578581
<excludes combine.children="append">
579582
<exclude>.*Thresholds</exclude>
580583
<exclude>.*Test.*</exclude>
584+
<exclude>.*Benchmark.*</exclude>
581585
<exclude>.*TaskScanner.*</exclude>
582586
</excludes>
583587
<entryPointClassPackage>io.jenkins.plugins.analysis.core.assertions</entryPointClassPackage>

plugin/src/main/java/io/jenkins/plugins/analysis/core/columns/IssuesTotalColumn.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public IssuesTotalColumn() {
6161
}
6262

6363
/**
64-
* Called after de-serialization to retain backward compatibility..
64+
* Called after deserialization to retain backward compatibility..
6565
*
6666
* @return this
6767
*/

plugin/src/main/java/io/jenkins/plugins/analysis/core/model/DeltaReport.java

+6-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ public class DeltaReport {
3939
public DeltaReport(final Report report, final int currentBuildNumber) {
4040
allIssues = report;
4141
outstandingIssues = report;
42-
referenceIssues = EMPTY_REPORT;
43-
newIssues = EMPTY_REPORT;
44-
fixedIssues = EMPTY_REPORT;
42+
43+
var empty = report.copyEmptyInstance();
44+
referenceIssues = empty;
45+
newIssues = empty;
46+
fixedIssues = empty;
47+
4548
referenceBuildId = StringUtils.EMPTY;
4649

4750
report.logInfo("No valid reference build found");

plugin/src/main/java/io/jenkins/plugins/analysis/core/model/FixedWarningsDetail.java

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public boolean canDisplayFile(final Issue issue) {
6060

6161
/**
6262
* Returns the URL to the results of the same type of issues (i.e. same ID) in the reference build.
63+
*
6364
* <p>
6465
* If no reference build is found, then an empty string is returned.
6566
* </p>

plugin/src/main/java/io/jenkins/plugins/analysis/core/model/IconLabelProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class IconLabelProvider extends StaticAnalysisLabelProvider {
2020
* the name of the tool
2121
*/
2222
public IconLabelProvider(final String id, final String name) {
23-
this(id, name, EMPTY_DESCRIPTION, id);
23+
this(id, name, EMPTY_DESCRIPTION);
2424
}
2525

2626
/**

plugin/src/main/java/io/jenkins/plugins/analysis/core/model/IssueReportScanner.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public IssueReportScanner(final String filePattern, final String encoding,
4949
@Override
5050
protected Optional<Report> processFile(final Path file, final Charset charset, final FilteredLog log) {
5151
try {
52-
Report fileReport = parser.parseFile(new FileReaderFactory(file, charset));
52+
Report fileReport = parser.parse(new FileReaderFactory(file, charset));
5353

5454
log.logInfo("Successfully parsed file %s", file);
5555
log.logInfo("-> found %s (skipped %s)",

plugin/src/main/java/io/jenkins/plugins/analysis/core/model/LabelProviderFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public StaticAnalysisLabelProvider create(final String id) {
5454
* @param name
5555
* the name of the tool (might be empty or null)
5656
*
57-
* @return The label provider of the selected static analysis tool. If the tool is not found then a default label
57+
* @return The label provider of the selected static analysis tool. If the tool is not found, then a default label
5858
* provider is returned.
5959
*/
6060
public StaticAnalysisLabelProvider create(final String id, @CheckForNull final String name) {

plugin/src/main/java/io/jenkins/plugins/analysis/core/model/ReportScanningTool.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ public abstract class ReportScanningTool extends Tool {
5050

5151
private String pattern = StringUtils.EMPTY;
5252
private String reportEncoding = StringUtils.EMPTY;
53-
// Use negative case to allow defaulting to false and defaulting to existing behaviour.
5453
private boolean skipSymbolicLinks = false;
5554

5655
/**
57-
* Sets the Ant file-set pattern of files to work with. If the pattern is undefined then the console log is
56+
* Sets the Ant file-set pattern of files to work with. If the pattern is undefined, then the console log is
5857
* scanned.
5958
*
6059
* @param pattern
@@ -95,7 +94,7 @@ public ReportScanningToolDescriptor getDescriptor() {
9594
public abstract IssueParser createParser();
9695

9796
/**
98-
* Specify if file scanning skip traversal of symbolic links.
97+
* Specify if the file scanning step should skip the traversal of symbolic links.
9998
*
10099
* @param skipSymbolicLinks
101100
* if symbolic links should be skipped during directory scanning.
@@ -180,6 +179,7 @@ private Report scanInWorkspace(final FilePath workspace, final String expandedPa
180179

181180
List<Report> results = report.getResults();
182181
Report aggregation;
182+
// FIXME: properties are not set in the aggregation
183183
if (results.isEmpty()) {
184184
aggregation = new Report();
185185
}

plugin/src/main/java/io/jenkins/plugins/analysis/core/model/ResetQualityGateCommand.java

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* build (started automatically or manually) will not evaluate a quality gate that considers the number of new warnings.
1717
* This helps to start over from a clean state if the number of new warnings have been increased accidentally. Otherwise
1818
* you won't get a successful build anymore until all new warnings have been fixed.
19+
*
1920
* <p>
2021
* Technically, this command just adds a marker action to the selected build. Once a new build is running, this marker
2122
* action will be checked for existence and the quality gate will be bypassed for one single build.

0 commit comments

Comments
 (0)