Skip to content

Commit

Permalink
Merge pull request #630 from jglick/HelloWorldBuilderTest-formatting
Browse files Browse the repository at this point in the history
Improve formatting in `HelloWorldBuilderTest`
  • Loading branch information
jglick authored Jun 2, 2023
2 parents d8b12ca + 122c5bb commit 2f1093e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void testScriptedPipeline() throws Exception {
String agentLabel = "my-agent";
jenkins.createOnlineSlave(Label.get(agentLabel));
WorkflowJob job = jenkins.createProject(WorkflowJob.class, "test-scripted-pipeline");
String pipelineScript = "node {\n" + " greet '" + name + "'\n" + "}";
String pipelineScript = "node {greet '" + name + "'}";
job.setDefinition(new CpsFlowDefinition(pipelineScript, true));
WorkflowRun completedBuild = jenkins.assertBuildStatusSuccess(job.scheduleBuild2(0));
String expectedString = "Hello, " + name + "!";
Expand Down

0 comments on commit 2f1093e

Please sign in to comment.