diff --git a/Jenkinsfile b/Jenkinsfile index 17a1709c7..acc4f7515 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' + } + } } -} \ No newline at end of file +}