From d4dcac48fff3169d5e4538f7673062e0b39e50f6 Mon Sep 17 00:00:00 2001 From: Stijn Bannink <27051051+stijnb1234@users.noreply.github.com> Date: Tue, 25 Feb 2020 15:33:36 +0100 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 68f96ea..1093c2c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,28 @@ pipeline { - agent any - stages { - stage('Build') { - steps { - echo 'Building V10Lift...' - } + agent any + tools { + maven 'Maven 3.3.9' + jdk 'jdk8' } + stages { + stage ('Initialize') { + steps { + sh ''' + echo "PATH = ${PATH}" + echo "M2_HOME = ${M2_HOME}" + ''' + } + } - } + stage ('Build') { + steps { + sh 'mvn -Dmaven.test.failure.ignore=true install' + } + post { + success { + junit 'target/v10lift2/**/*.xml' + } + } + } + } }