Splits verify and deploy steps
All checks were successful
EpicKnarvik97/DynmapCitizens/pipeline/head This commit looks good

This commit is contained in:
Kristian Knarvik 2022-11-26 15:12:17 +01:00
parent 06d63bd6fc
commit 22e0e6a55e

8
Jenkinsfile vendored
View File

@ -16,10 +16,16 @@ pipeline {
sh 'mvn test' sh 'mvn test'
} }
} }
stage('Verify') {
steps {
echo 'Verifying...'
sh 'mvn verify -Dmaven.test.skip=true'
}
}
stage('Deploy') { stage('Deploy') {
steps { steps {
echo 'Deploying...' echo 'Deploying...'
sh 'mvn verify -Dmaven.test.skip=true & mvn deploy -Dmaven.install.skip=true -Dmaven.test.skip=true' sh 'mvn deploy -Dmaven.install.skip=true -Dmaven.test.skip=true'
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
} }
} }