Skip to content

Commit 5ab9713

Browse files
committed
Merge remote-tracking branch 'upstream/master' into JENKINS-69731-scm-BRANCH_NAME
2 parents 48548ae + 1091aea commit 5ab9713

File tree

8 files changed

+20
-13
lines changed

8 files changed

+20
-13
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @jenkinsci/pipeline-groovy-lib-plugin-developers

.github/release-drafter.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<extension>
33
<groupId>io.jenkins.tools.incrementals</groupId>
44
<artifactId>git-changelist-maven-extension</artifactId>
5-
<version>1.4</version>
5+
<version>1.6</version>
66
</extension>
77
</extensions>

Jenkinsfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
buildPlugin(useContainerAgent: true, configurations: [
2-
[ platform: "linux", jdk: "8" ],
3-
[ platform: "windows", jdk: "8" ],
4-
[ platform: "linux", jdk: "11" ]
1+
buildPlugin(
2+
useContainerAgent: true,
3+
configurations: [
4+
[platform: 'linux', jdk: 17],
5+
[platform: 'windows', jdk: 11],
56
])

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<parent>
2929
<groupId>org.jenkins-ci.plugins</groupId>
3030
<artifactId>plugin</artifactId>
31-
<version>4.50</version>
31+
<version>4.54</version>
3232
<relativePath/>
3333
</parent>
3434
<groupId>io.jenkins.plugins</groupId>
@@ -63,15 +63,15 @@
6363
</pluginRepositories>
6464
<properties>
6565
<changelist>999999-SNAPSHOT</changelist>
66-
<jenkins.version>2.346.3</jenkins.version>
66+
<jenkins.version>2.361.4</jenkins.version>
6767
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
6868
</properties>
6969
<dependencyManagement>
7070
<dependencies>
7171
<dependency>
7272
<groupId>io.jenkins.tools.bom</groupId>
73-
<artifactId>bom-2.346.x</artifactId>
74-
<version>1678.vc1feb_6a_3c0f1</version>
73+
<artifactId>bom-2.361.x</artifactId>
74+
<version>1750.v0071fa_4c4a_e3</version>
7575
<scope>import</scope>
7676
<type>pom</type>
7777
</dependency>
@@ -200,7 +200,7 @@
200200
<dependency>
201201
<groupId>org.tmatesoft.svnkit</groupId>
202202
<artifactId>svnkit-cli</artifactId>
203-
<version>1.10.7</version>
203+
<version>1.10.10</version>
204204
<scope>test</scope>
205205
</dependency>
206206
</dependencies>

src/main/java/org/jenkinsci/plugins/workflow/libs/SCMSourceRetriever.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ private static <T> T retrySCMOperation(TaskListener listener, Callable<T> task)
172172
return ret;
173173
}
174174

175-
@SuppressFBWarnings(value = "RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE", justification = "apparently bogus complaint about redundant nullcheck in try-with-resources")
176175
static void doRetrieve(String name, boolean changelog, @NonNull SCM scm, String libraryPath, FilePath target, Run<?, ?> run, TaskListener listener) throws Exception {
177176
// Adapted from CpsScmFlowDefinition:
178177
SCMStep delegate = new GenericSCMStep(scm);

src/test/java/org/jenkinsci/plugins/workflow/libs/FolderLibrariesTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import com.gargoylesoftware.htmlunit.html.HtmlTextArea;
3333
import com.gargoylesoftware.htmlunit.util.NameValuePair;
3434
import com.google.common.collect.ImmutableMap;
35+
import hudson.Functions;
3536
import hudson.model.Item;
3637
import hudson.model.Result;
3738
import hudson.plugins.git.GitSCM;
@@ -54,6 +55,7 @@
5455
import org.jenkinsci.plugins.workflow.job.WorkflowRun;
5556
import org.junit.Test;
5657
import static org.junit.Assert.*;
58+
import static org.junit.Assume.assumeFalse;
5759
import org.junit.ClassRule;
5860
import org.junit.Rule;
5961
import org.jvnet.hudson.test.BuildWatcher;
@@ -188,6 +190,7 @@ public class FolderLibrariesTest {
188190

189191
@Issue("JENKINS-43019")
190192
@Test public void classCastException() throws Exception {
193+
assumeFalse("Too slow, prone to timing out before getting to build #51", Functions.isWindows());
191194
sampleRepo1.init();
192195
sampleRepo1.write("src/pkg/Obj.groovy", "package pkg; public class Obj implements Serializable {public Obj() {}}");
193196
sampleRepo1.write("vars/objs.groovy", "@groovy.transform.Field final pkg.Obj OBJ = new pkg.Obj()");

src/test/java/org/jenkinsci/plugins/workflow/libs/LibraryStepTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ public class LibraryStepTest {
8585
null, null, Collections.<GitSCMExtension>emptyList())));
8686
s.setChangelog(false);
8787
r.assertEqualDataBoundBeans(s, stepTester.configRoundTrip(s));
88-
snippetizerTester.assertRoundTrip(s, "library changelog: false, identifier: 'foo@master', retriever: legacySCM([$class: 'GitSCM', branches: [[name: '${library.foo.version}']], extensions: [], userRemoteConfigs: [[url: 'https://nowhere.net/']]])");
88+
if (r.jenkins.get().getPlugin("git").getWrapper().getVersion().startsWith("4.")) {
89+
snippetizerTester.assertRoundTrip(s, "library changelog: false, identifier: 'foo@master', retriever: legacySCM([$class: 'GitSCM', branches: [[name: '${library.foo.version}']], extensions: [], userRemoteConfigs: [[url: 'https://nowhere.net/']]])");
90+
} else {
91+
snippetizerTester.assertRoundTrip(s, "library changelog: false, identifier: 'foo@master', retriever: legacySCM(scmGit(branches: [[name: '${library.foo.version}']], extensions: [], userRemoteConfigs: [[url: 'https://nowhere.net/']]))");
92+
}
8993
}
9094

9195
@Test public void vars() throws Exception {

0 commit comments

Comments
 (0)