Skip to content

Commit

Permalink
Accept test run on any agent (#1525)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MarkEWaite authored Nov 12, 2023
1 parent 11ae2dd commit f882304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/hudson/plugins/git/Security2478Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void checkoutShouldNotAbortWhenLocalSourceAndRunningOnAgent() throws Exce
sampleRepo.git("commit", "--all", "--message=test commit");
WorkflowJob p = r.jenkins.createProject(WorkflowJob.class, "pipeline");

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

0 comments on commit f882304

Please sign in to comment.