From 5b0cafeb3622c5b9873023f5aef23a99cfb41f80 Mon Sep 17 00:00:00 2001 From: Endolf Date: Wed, 23 May 2018 17:49:04 +0100 Subject: [PATCH] Fix the stashing and unstashing --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 33f422c..eb760ca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,6 +31,12 @@ pipeline { sh 'echo $JAVA_HOME' sh 'mvn -B -DskipTests clean package' } + post { + success { + stash includes: 'plugins/**/target/*.jar*', name: 'linux-artifacts' + stash includes: '**/target/*.jar*', excludes: 'plugins/**/target/*.jar*', name: 'core-artifacts' + } + } } stage('Build on OSX') { agent { @@ -53,8 +59,10 @@ pipeline { label "linux" } steps { + unstash 'core-artifacts' unstash 'windows-artifacts' unstash 'osx-artifacts' + unstash 'linux-artifacts' } post { always {