-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up plugin #125
Clean up plugin #125
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
#!/usr/bin/env groovy | ||
/* `buildPlugin` step provided by: https://github.com/jenkins-infra/pipeline-library */ | ||
buildPlugin( | ||
useContainerAgent: true, | ||
configurations: [ | ||
[ platform: "linux", jdk: "11" ], | ||
[ platform: "linux", jdk: "17" ], | ||
], | ||
) | ||
buildPlugin(useContainerAgent: true, configurations: [ | ||
[platform: 'linux', jdk: 17], | ||
[platform: 'windows', jdk: 11], | ||
]) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
<parent> | ||
<groupId>org.jenkins-ci.plugins</groupId> | ||
<artifactId>plugin</artifactId> | ||
<version>4.58</version> | ||
<version>4.67</version> | ||
<relativePath /> | ||
</parent> | ||
|
||
|
@@ -30,8 +30,8 @@ | |
<jenkins.version>2.361.4</jenkins.version> | ||
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo> | ||
<no-test-jar>false</no-test-jar> | ||
<!-- Use the same configuration than before. --> | ||
<spotbugs.failOnError>false</spotbugs.failOnError> | ||
<!-- TODO fix existing violations --> | ||
<spotbugs.threshold>High</spotbugs.threshold> | ||
</properties> | ||
|
||
|
||
|
@@ -83,7 +83,7 @@ | |
<dependency> | ||
<groupId>io.jenkins.tools.bom</groupId> | ||
<artifactId>bom-2.361.x</artifactId> | ||
<version>1968.vb_14a_29e76128</version> | ||
<version>2102.v854b_fec19c92</version> | ||
<scope>import</scope> | ||
<type>pom</type> | ||
</dependency> | ||
|
@@ -100,29 +100,47 @@ | |
<groupId>org.jenkins-ci.plugins.workflow</groupId> | ||
<artifactId>workflow-cps</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jenkins-ci.plugins</groupId> | ||
<artifactId>structs</artifactId> | ||
</dependency> | ||
Comment on lines
-103
to
-106
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not needed as of recent cores. |
||
<dependency> | ||
<groupId>com.atlassian.confluence</groupId> | ||
<artifactId>confluence-rest-client</artifactId> | ||
<version>7.14.0</version> | ||
<exclusions> | ||
<!-- Provided by Jenkins core --> | ||
<exclusion> | ||
<groupId>com.google.code.findbugs</groupId> | ||
<artifactId>jsr305</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>com.google.errorprone</groupId> | ||
<artifactId>error_prone_annotations</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>com.google.j2objc</groupId> | ||
<artifactId>j2objc-annotations</artifactId> | ||
<groupId>com.google.guava</groupId> | ||
<artifactId>guava</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>commons-io</groupId> | ||
<artifactId>commons-io</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.checkerframework</groupId> | ||
<artifactId>checker-qual</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
</exclusion> | ||
<!-- Provided by commons-lang3-api plugin --> | ||
<exclusion> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.jenkins.plugins</groupId> | ||
<artifactId>commons-lang3-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.jenkins.plugins</groupId> | ||
<artifactId>jaxb</artifactId> | ||
|
@@ -135,11 +153,6 @@ | |
<groupId>org.jenkins-ci.plugins</groupId> | ||
<artifactId>plain-credentials</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
Comment on lines
-138
to
-142
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not needed as of recent plugin parent POMs. |
||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-core</artifactId> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -276,8 +276,9 @@ protected List<Content> performAttachments(Run build, FilePath ws, | |
+ " workspace artifact(s) to upload to Confluence..."); | ||
|
||
for (FilePath file : workspaceFiles) { | ||
if (!files.contains(file)) { | ||
files.add(file.toVirtualFile()); | ||
Comment on lines
-279
to
-280
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The only high-severity SpotBugs warning identified. |
||
VirtualFile vf = file.toVirtualFile(); | ||
if (!files.contains(vf)) { | ||
files.add(vf); | ||
} else { | ||
// Don't include the file twice if it's already in the | ||
// list | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ | |
import org.kohsuke.stapler.QueryParameter; | ||
import org.kohsuke.stapler.interceptor.RequirePOST; | ||
|
||
import javax.annotation.CheckForNull; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. JSR 305 was EOL'ed a long time ago. |
||
import edu.umd.cs.findbugs.annotations.CheckForNull; | ||
import javax.servlet.ServletException; | ||
import java.io.IOException; | ||
import java.net.MalformedURLException; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make SpotBugs error behavior the same locally as in CI, focusing on high-priority violations.