Split Build stage up

This commit is contained in:
Paul Campbell 2018-02-24 20:50:21 +00:00
parent e85657f8b4
commit 3cf89ab11c

10
Jenkinsfile vendored
View file

@ -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'
}