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" } } }