Skip to content

Commit 79cf61b

Browse files
committed
Remove git plugin 4.x test code
Git plugin 5.0.0 has been provided since bom 1763.v092b_8980a_f5e. No need to include the special case for git plugin 4.x since this code will never be run with git plugin 4.x. Moves forward from 01b9885
1 parent aaceeb6 commit 79cf61b

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)