Preserve artifacts
All checks were successful
Homelab/java-spring-microservice/pipeline/head This commit looks good
All checks were successful
Homelab/java-spring-microservice/pipeline/head This commit looks good
This commit is contained in:
parent
d700721673
commit
6331a5e5e9
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user