Skip to content

Commit f882304

Browse files
authored
Accept test run on any agent (#1525)
Test condition does not require an agent so there is no benefit to declaring the name of a specific agent. Any agent is sufficient for this test.
1 parent 11ae2dd commit f882304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/hudson/plugins/git/Security2478Test.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void checkoutShouldNotAbortWhenLocalSourceAndRunningOnAgent() throws Exce
4545
sampleRepo.git("commit", "--all", "--message=test commit");
4646
WorkflowJob p = r.jenkins.createProject(WorkflowJob.class, "pipeline");
4747

48-
String script = "node('slave0') {\n" +
48+
String script = "node {\n" +
4949
" checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: '" + sampleRepo.fileUrl() + "', credentialsId: '']]])\n" +
5050
"}";
5151
p.setDefinition(new CpsFlowDefinition(script, true));

0 commit comments

Comments
 (0)