diff --git a/Jenkinsfile b/Jenkinsfile index b1d0eca..576f29e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,12 +7,22 @@ pipeline{ } stages{ + stage ('Initialize') { + steps { + sh ''' + echo "PATH = ${PATH}" + echo "M2_HOME = ${M2_HOME}" + ''' + } + } stage('Build'){ - sh 'mvn -Dmaven.test.failure.ignore=true build' - } - post{ - success{ - junit 'target/surefire-reports/**/*.xml' + step{ + sh 'mvn -Dmaven.test.failure.ignore=true build' + } + post{ + success{ + junit 'target/surefire-reports/**/*.xml' + } } } }