We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 377ac62 commit 05bb289Copy full SHA for 05bb289
src/test/java/org/jenkinsci/plugins/workflow/steps/scm/SCMStepTest.java
@@ -201,12 +201,8 @@ public void scmVars() throws Exception {
201
WorkflowJob p = r.jenkins.createProject(WorkflowJob.class, "p");
202
p.setDefinition(new CpsFlowDefinition(
203
"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));
+ " git($/" + sampleGitRepo + "/$)\n" +
+ "}", true));
210
sampleGitRepo.init(); // GitSampleRepoRule provides default user gits@mplereporule
211
sampleGitRepo.write("foo", "bar");
212
sampleGitRepo.git("add", "foo");
0 commit comments