Preserve artifacts
All checks were successful
Homelab/java-spring-microservice/pipeline/head This commit looks good

This commit is contained in:
Jim Nicholson 2021-12-09 23:31:05 -08:00
parent d700721673
commit 6331a5e5e9

4
Jenkinsfile vendored
View File

@ -10,7 +10,6 @@ podTemplate(label: label, containers: [
]) {
node(label) {
stage('Checkout') {
// git credentialsId: 'jenkins-credentials', url: 'https://git.thejimnicholson.com/homelab/java-spring-microservice.git'
checkout scm
container('maven') {
stage('Build') {
@ -18,6 +17,9 @@ podTemplate(label: label, containers: [
mvn clean package -Dmaven.test.skip
'''
}
stage('Archive') {
archiveArtifacts artifacts: 'target/*.jar', followSymlinks: false
}
}
}
}