DWN-33428 : add batch mode to maven commands

pull/1601/head
Harry Smith 2020-06-09 07:56:53 +01:00
parent 5cef73de8a
commit 727b62e014
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -55,7 +55,7 @@ pipeline {
}
steps {
sh "mvn versions:set -B -DnewVersion=$VERSION"
sh "mvn -N versions:update-child-modules"
sh "mvn -N -B versions:update-child-modules"
script {
sh "git commit --all --message 'Creating Release $VERSION'"
sh "git tag --annotate v$VERSION --message 'Creating Release $VERSION'"
@ -107,8 +107,8 @@ pipeline {
steps {
timeout(time: 10, unit: 'MINUTES') {
withMaven(options: [junitPublisher(disabled: true)]) {
sh "mvn versions:set -DnewVersion=${env.BRANCH_NAME}.GRESHAM-SNAPSHOT"
sh "mvn -N versions:update-child-modules"
sh "mvn versions:set -B -DnewVersion=${env.BRANCH_NAME}.GRESHAM-SNAPSHOT"
sh "mvn -N -B versions:update-child-modules"
sh "mvn -B -V -U -T4 clean deploy -DaltSnapshotDeploymentRepository=snapshots::default::https://nexus.greshamtech.com/content/repositories/third-party-snapshots/"
}
}