From 041d82374531114dde0af13850389e7dc3315c42 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Wed, 29 May 2019 23:25:00 -0400 Subject: [PATCH] Switch to multiline steps. --- Jenkinsfile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 61ea0ca..f1773b9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -58,12 +58,13 @@ pipeline { stages { stage('clean up before starting') { steps { - script { - echo "Create a fresh local repository" - rm -rf $MAVEN_LOCAL_REPO - mkdir -p $MAVEN_LOCAL_REPO - echo "Done with local repository" - } + sh ''' + echo "Create a fresh local repository" + rm -rf $MAVEN_LOCAL_REPO + mkdir -p $MAVEN_LOCAL_REPO + echo "Done with local repository" + ''' + } } stage('build core components') { @@ -74,9 +75,7 @@ pipeline { build 'authorization-common-library' build 'gxRest' } - script { - echo "Done with core components" - } + echo "Done with core components" } } }