added stash and unstash steps to Jenkinsfile

This commit is contained in:
nagasuribabukola 2023-10-12 11:24:55 +05:30 committed by GitHub
parent d629d3c806
commit c804495ea4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

16
Jenkinsfile vendored
View file

@ -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'
}
}
}
}
}