diff --git a/pom.xml b/pom.xml index d15bf505d1..226107f69f 100644 --- a/pom.xml +++ b/pom.xml @@ -24,9 +24,9 @@ 2007 - 3.11.1 + 3.12.0 -SNAPSHOT - 2.121.1 + 2.138.4 8 false true @@ -92,7 +92,7 @@ org.jenkins-ci.plugins structs - 1.18 + 1.19 org.jenkins-ci.plugins @@ -102,7 +102,7 @@ org.jenkins-ci.plugins credentials - 2.1.14 + 2.1.18 org.jenkins-ci.plugins @@ -123,12 +123,12 @@ org.jenkins-ci.plugins.workflow workflow-step-api - 2.13 + 2.20 org.jenkins-ci.plugins.workflow workflow-scm-step - 2.4 + 2.7 org.jenkins-ci.plugins @@ -212,7 +212,7 @@ org.jenkins-ci.plugins.workflow workflow-step-api - 2.13 + 2.20 tests test @@ -226,7 +226,7 @@ org.jenkins-ci.plugins.workflow workflow-cps - 2.52 + 2.71 test @@ -256,7 +256,7 @@ org.jenkins-ci.plugins.workflow workflow-cps-global-lib - 2.10 + 2.14 test @@ -274,13 +274,13 @@ org.jenkins-ci.plugins.workflow workflow-api - 2.30 + 2.33 test org.jenkins-ci.plugins.workflow workflow-support - 3.1 + 3.3 test diff --git a/src/test/java/jenkins/plugins/git/ModernScmTest.java b/src/test/java/jenkins/plugins/git/ModernScmTest.java new file mode 100644 index 0000000000..6845ce6f0b --- /dev/null +++ b/src/test/java/jenkins/plugins/git/ModernScmTest.java @@ -0,0 +1,47 @@ +/* + * + * The MIT License + * + * Copyright (c) Red Hat, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +package jenkins.plugins.git; + +import hudson.ExtensionList; +import org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever; +import org.junit.Rule; +import org.junit.Test; +import org.jvnet.hudson.test.JenkinsRule; + +import static org.hamcrest.Matchers.contains; +import static org.hamcrest.Matchers.instanceOf; +import static org.junit.Assert.assertThat; + +public class ModernScmTest { + + @Rule + public JenkinsRule jenkins = new JenkinsRule(); + + @Test + public void gitIsModernScm() { + SCMSourceRetriever.DescriptorImpl descriptor = ExtensionList.lookupSingleton(SCMSourceRetriever.DescriptorImpl.class); + assertThat(descriptor.getSCMDescriptors(), contains(instanceOf(GitSCMSource.DescriptorImpl.class))); + } +}