Skip to content

Commit 05bb289

Browse files
committed
Try to make ScmStepTest.gitChangelogSmokes work on Windows
1 parent 377ac62 commit 05bb289

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/test/java/org/jenkinsci/plugins/workflow/steps/scm/SCMStepTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,8 @@ public void scmVars() throws Exception {
201201
WorkflowJob p = r.jenkins.createProject(WorkflowJob.class, "p");
202202
p.setDefinition(new CpsFlowDefinition(
203203
"node() {\n" +
204-
" checkout(scm: [\n" +
205-
" $class: 'GitSCM',\n" +
206-
" branches: [[name: '*/master']],\n" +
207-
" userRemoteConfigs: [[url: '" + sampleGitRepo.fileUrl() + "']]\n" +
208-
" ])\n" +
209-
"}", true));
204+
" git($/" + sampleGitRepo + "/$)\n" +
205+
"}", true));
210206
sampleGitRepo.init(); // GitSampleRepoRule provides default user gits@mplereporule
211207
sampleGitRepo.write("foo", "bar");
212208
sampleGitRepo.git("add", "foo");

0 commit comments

Comments
 (0)