mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
added stash and unstash steps to Jenkinsfile
This commit is contained in:
parent
d629d3c806
commit
c804495ea4
1 changed files with 15 additions and 1 deletions
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
@ -23,5 +23,19 @@ pipeline {
|
|||
allowEmptyResults: false
|
||||
}
|
||||
}
|
||||
|
||||
stage('Stash') {
|
||||
steps {
|
||||
stash name: 'artifact',
|
||||
includes: '**/target/*.jar'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Unstash') {
|
||||
agent { label 'JDK8' }
|
||||
steps {
|
||||
unstash name: 'artifact'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue