diff --git a/01-maven-example.groovy b/01-maven-example.groovy index 13b5368..01bc32c 100644 --- a/01-maven-example.groovy +++ b/01-maven-example.groovy @@ -7,12 +7,12 @@ pipeline { stages { stage('Checkout') { steps { - sh 'mvn clean' + git url: 'https://guillemhs@bitbucket.org/itnove/junitmaven.git' } } stage('Build') { steps { - sh 'mvn package -DskipTests' + sh 'mvn compile -DskipTests' } } stage('Test') { @@ -25,6 +25,11 @@ pipeline { } } } + stage('Package') { + steps { + sh 'mvn package -DskipTests' + } + } } post { success {