From f0d4b907b8958d55b6c9ac78d36d40758f0ad345 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 16 Dec 2022 08:24:01 +1000 Subject: [PATCH] fix stash --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 71cd00ee77..2165258f82 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,12 +54,13 @@ node(jenkinsEnv.nodeSelection(osNode)) { "PATH+MAVEN=${ tool "$jdkName" }/bin:${tool "$mvnName"}/bin", "MAVEN_OPTS=-Xms2g -Xmx4g -Djava.awt.headless=true"]) { sh "mvn clean ${MAVEN_GOAL} -B -U -e -fae -V -Dmaven.test.failure.ignore -PversionlessMavenDist -Dmaven.repo.local=${WORK_DIR}/.repository" - sh "mv apache-maven/target/apache-maven-bin.zip apache-maven-dist.zip" - stash includes: 'apache-maven-dist.zip', name: 'dist' } } finally { junit testResults: '**/target/surefire-reports/*.xml', allowEmptyResults: true } + dir ('apache-maven/target') { + stash includes: 'apache-maven-bin.zip', name: 'maven-dist' + } } } }