From 122c5bb1b1fcdafc88b9484f2b4095e245a3cdea Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Fri, 2 Jun 2023 15:35:15 -0400 Subject: [PATCH] Improve formatting in `HelloWorldBuilderTest` --- .../src/test/java/HelloWorldBuilderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 + "!";