From 727b62e0143d974b5f9c39138fa7d0d34daa53ea Mon Sep 17 00:00:00 2001 From: Harry Smith Date: Tue, 9 Jun 2020 07:56:53 +0100 Subject: [PATCH] DWN-33428 : add batch mode to maven commands --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 427fe4db7..398155c1e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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/" } }