From 620232a23ced820c5a9c2048781f1e8fc318d8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Hern=C3=A1ndez=20Sola?= Date: Mon, 3 Apr 2017 13:58:50 +0200 Subject: [PATCH] Second type --- 01-maven-example.groovy | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 {