Skip to content

Commit 24c19a8

Browse files
authored
Merge pull request #74 from MarkEWaite/remove-git-plugin-4.x-test-code
Remove git plugin 4.x test code
2 parents aaceeb6 + 79cf61b commit 24c19a8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,7 @@ public class LibraryStepTest {
8585
null, null, Collections.<GitSCMExtension>emptyList())));
8686
s.setChangelog(false);
8787
r.assertEqualDataBoundBeans(s, stepTester.configRoundTrip(s));
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-
}
88+
snippetizerTester.assertRoundTrip(s, "library changelog: false, identifier: 'foo@master', retriever: legacySCM(scmGit(branches: [[name: '${library.foo.version}']], extensions: [], userRemoteConfigs: [[url: 'https://nowhere.net/']]))");
9389
}
9490

9591
@Test public void vars() throws Exception {

0 commit comments

Comments
 (0)