Skip to content

Commit 33843a5

Browse files
committed
Merge branch 'stable-3.x'
2 parents 59ba791 + 8fe4be4 commit 33843a5

File tree

2 files changed

+57
-10
lines changed

2 files changed

+57
-10
lines changed

pom.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<properties>
2727
<revision>4.0.0-beta11</revision>
2828
<changelist>-SNAPSHOT</changelist>
29-
<jenkins.version>2.121.1</jenkins.version>
29+
<jenkins.version>2.138.4</jenkins.version>
3030
<java.level>8</java.level>
3131
<no-test-jar>false</no-test-jar>
3232
<useBeta>true</useBeta>
@@ -86,7 +86,7 @@
8686
<dependency>
8787
<groupId>org.jenkins-ci.plugins</groupId>
8888
<artifactId>structs</artifactId>
89-
<version>1.18</version>
89+
<version>1.19</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>org.jenkins-ci.plugins</groupId>
@@ -96,7 +96,7 @@
9696
<dependency>
9797
<groupId>org.jenkins-ci.plugins</groupId>
9898
<artifactId>credentials</artifactId>
99-
<version>2.1.14</version>
99+
<version>2.1.18</version>
100100
</dependency>
101101
<dependency>
102102
<groupId>org.jenkins-ci.plugins</groupId>
@@ -111,12 +111,12 @@
111111
<dependency>
112112
<groupId>org.jenkins-ci.plugins.workflow</groupId>
113113
<artifactId>workflow-step-api</artifactId>
114-
<version>2.19</version>
114+
<version>2.20</version>
115115
</dependency>
116116
<dependency>
117117
<groupId>org.jenkins-ci.plugins.workflow</groupId>
118118
<artifactId>workflow-scm-step</artifactId>
119-
<version>2.4</version>
119+
<version>2.7</version>
120120
</dependency>
121121
<dependency>
122122
<groupId>org.jenkins-ci.plugins</groupId>
@@ -198,7 +198,7 @@
198198
<dependency>
199199
<groupId>org.jenkins-ci.plugins.workflow</groupId>
200200
<artifactId>workflow-step-api</artifactId>
201-
<version>2.13</version>
201+
<version>2.20</version>
202202
<classifier>tests</classifier>
203203
<scope>test</scope>
204204
</dependency>
@@ -212,7 +212,7 @@
212212
<dependency>
213213
<groupId>org.jenkins-ci.plugins.workflow</groupId>
214214
<artifactId>workflow-cps</artifactId>
215-
<version>2.52</version>
215+
<version>2.71</version>
216216
<scope>test</scope>
217217
</dependency>
218218
<dependency>
@@ -242,7 +242,7 @@
242242
<dependency>
243243
<groupId>org.jenkins-ci.plugins.workflow</groupId>
244244
<artifactId>workflow-cps-global-lib</artifactId>
245-
<version>2.10</version>
245+
<version>2.14</version>
246246
<scope>test</scope>
247247
<exclusions>
248248
<exclusion>
@@ -281,13 +281,13 @@
281281
<dependency>
282282
<groupId>org.jenkins-ci.plugins.workflow</groupId>
283283
<artifactId>workflow-api</artifactId>
284-
<version>2.30</version>
284+
<version>2.33</version>
285285
<scope>test</scope>
286286
</dependency>
287287
<dependency>
288288
<groupId>org.jenkins-ci.plugins.workflow</groupId>
289289
<artifactId>workflow-support</artifactId>
290-
<version>3.2</version>
290+
<version>3.3</version>
291291
<scope>test</scope>
292292
</dependency>
293293
<!-- JCasC compatibility -->
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
*
3+
* The MIT License
4+
*
5+
* Copyright (c) Red Hat, Inc.
6+
*
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in
15+
* all copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
* THE SOFTWARE.
24+
*/
25+
package jenkins.plugins.git;
26+
27+
import hudson.ExtensionList;
28+
import org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever;
29+
import org.junit.Rule;
30+
import org.junit.Test;
31+
import org.jvnet.hudson.test.JenkinsRule;
32+
33+
import static org.hamcrest.Matchers.contains;
34+
import static org.hamcrest.Matchers.instanceOf;
35+
import static org.junit.Assert.assertThat;
36+
37+
public class ModernScmTest {
38+
39+
@Rule
40+
public JenkinsRule jenkins = new JenkinsRule();
41+
42+
@Test
43+
public void gitIsModernScm() {
44+
SCMSourceRetriever.DescriptorImpl descriptor = ExtensionList.lookupSingleton(SCMSourceRetriever.DescriptorImpl.class);
45+
assertThat(descriptor.getSCMDescriptors(), contains(instanceOf(GitSCMSource.DescriptorImpl.class)));
46+
}
47+
}

0 commit comments

Comments
 (0)