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