diff --git a/hello-world/src/main/resources/archetype-resources/src/test/java/HelloWorldBuilderTest.java b/hello-world/src/main/resources/archetype-resources/src/test/java/HelloWorldBuilderTest.java index bac77935..b55f4cd2 100644 --- a/hello-world/src/main/resources/archetype-resources/src/test/java/HelloWorldBuilderTest.java +++ b/hello-world/src/main/resources/archetype-resources/src/test/java/HelloWorldBuilderTest.java @@ -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 + "!";