diff --git a/vars/mavenCI.groovy b/vars/mavenCI.groovy index 187a5548..016c7e38 100644 --- a/vars/mavenCI.groovy +++ b/vars/mavenCI.groovy @@ -33,7 +33,7 @@ def call(body) { stage('Build + Unit test') { // set a unique temp version so we can download artifacts from nexus and run acceptance tests sh "mvn -U versions:set -DnewVersion=${version}" - sh "mvn clean -B -e -U install -Dmaven.test.skip=${skipTests} -P openshift" + sh "mvn clean -B -e -U deploy -Dmaven.test.skip=${skipTests} -P openshift" } def s2iMode = utils.supportsOpenShiftS2I() diff --git a/vars/mavenCanaryRelease.groovy b/vars/mavenCanaryRelease.groovy index a3de8a4c..08a7340b 100644 --- a/vars/mavenCanaryRelease.groovy +++ b/vars/mavenCanaryRelease.groovy @@ -55,7 +55,7 @@ def call(body) { } } - sh "mvn clean -B -e -U install -Dmaven.test.skip=${skipTests} ${spaceLabelArg} -P openshift" + sh "mvn clean -B -e -U deploy -Dmaven.test.skip=${skipTests} ${spaceLabelArg} -P openshift" junitResults(body);