fix stash

This commit is contained in:
Olivier Lamy 2022-12-16 08:24:01 +10:00 committed by GitHub
parent c1deb6233a
commit f0d4b907b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

5
Jenkinsfile vendored
View File

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