Skip to content

Commit 9707099

Browse files
committed
Move sampleGitRepo.init to the top of gitChangelogSmokes for clarity
1 parent 6d78269 commit 9707099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,12 @@ public void scmVars() throws Exception {
195195

196196
@Test public void gitChangelogSmokes() {
197197
rr.then(r -> {
198+
sampleGitRepo.init(); // GitSampleRepoRule provides default user gits@mplereporule
198199
WorkflowJob p = r.jenkins.createProject(WorkflowJob.class, "p");
199200
p.setDefinition(new CpsFlowDefinition(
200201
"node() {\n" +
201202
" git($/" + sampleGitRepo + "/$)\n" +
202203
"}", true));
203-
sampleGitRepo.init(); // GitSampleRepoRule provides default user gits@mplereporule
204204
sampleGitRepo.write("foo", "bar");
205205
sampleGitRepo.git("add", "foo");
206206
sampleGitRepo.git("commit", "-m", "Initial commit");

0 commit comments

Comments
 (0)