From 3cf89ab11cdb8481c2bc0843c733624aed65d2af Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 24 Feb 2018 20:50:21 +0000 Subject: [PATCH] Split Build stage up --- Jenkinsfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b0f4760..880b2ed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline { agent any stages { - stage('Build') { + stage('Prepare') { steps { checkout([ $class: 'GitSCM', @@ -9,7 +9,15 @@ pipeline { extensions: [[$class: 'CleanBeforeCheckout']], userRemoteConfigs: [[credentialsId: 'github-kemitix', url: 'git@github.com:kemitix/conditional.git']] ]) + } + } + stage('Build') { + steps { sh './mvnw -B -U clean install' + } + } + stage('Reporting') { + steps { junit '**/target/surefire-reports/*.xml' archiveArtifacts '**/target/*.jar' }