jenkins: use upgraded maven-enforcer-plugin for java 9 compatibility

This commit is contained in:
Paul Campbell 2018-03-11 18:52:15 +00:00
parent 82a0f162ed
commit 8d88f9153a

View file

@ -48,7 +48,7 @@ pipeline {
stage('Build Java Next') {
steps {
withMaven(maven: 'maven', jdk: 'JDK Next') {
sh "${mvn} clean install -Djava.version=9"
sh "${mvn} clean install -Djava.version=9 -Dmaven-enforcer-plugin.version=3.0.0-M1"
//TODO: check that git status is still clean - i.e. builder didn't update any rulesets
}
}
@ -56,7 +56,6 @@ pipeline {
stage('Build Java LTS') {
steps {
withMaven(maven: 'maven', jdk: 'JDK LTS') {
sh "${mvn} clean install"
//TODO: check that git status is still clean - i.e. builder didn't update any rulesets
}