Skip to content

Commit

Permalink
Improve formatting in HelloWorldBuilderTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Jun 2, 2023
1 parent d8b12ca commit 122c5bb
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 122c5bb

Please sign in to comment.