mirror of https://github.com/apache/maven.git
fix stash
This commit is contained in:
parent
c1deb6233a
commit
f0d4b907b8
|
@ -54,12 +54,13 @@ node(jenkinsEnv.nodeSelection(osNode)) {
|
||||||
"PATH+MAVEN=${ tool "$jdkName" }/bin:${tool "$mvnName"}/bin",
|
"PATH+MAVEN=${ tool "$jdkName" }/bin:${tool "$mvnName"}/bin",
|
||||||
"MAVEN_OPTS=-Xms2g -Xmx4g -Djava.awt.headless=true"]) {
|
"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 "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 {
|
} finally {
|
||||||
junit testResults: '**/target/surefire-reports/*.xml', allowEmptyResults: true
|
junit testResults: '**/target/surefire-reports/*.xml', allowEmptyResults: true
|
||||||
}
|
}
|
||||||
|
dir ('apache-maven/target') {
|
||||||
|
stash includes: 'apache-maven-bin.zip', name: 'maven-dist'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue