From d339a1bc2109a03bd8bc16a695368631d4aea242 Mon Sep 17 00:00:00 2001 From: Tibor Zimanyi Date: Wed, 17 Apr 2019 14:23:32 +0200 Subject: [PATCH] DROOLS-3898 Use submarine Maven settings.xml in PR automation (#4) --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 76564aaeca8..816c8ebfa49 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,8 +23,8 @@ pipeline { dir("submarine-bom") { script { githubscm.checkoutIfExists('submarine-bom', "$CHANGE_AUTHOR", "$CHANGE_BRANCH", 'kiegroup', "$CHANGE_TARGET") + maven.runMavenWithSubmarineSettings('clean install', true) } - sh 'mvn clean install -DskipTests' } } } @@ -35,8 +35,8 @@ pipeline { dir("submarine-runtimes") { script { githubscm.checkoutIfExists('submarine-runtimes', "$CHANGE_AUTHOR", "$CHANGE_BRANCH", 'kiegroup', "$CHANGE_TARGET") + maven.runMavenWithSubmarineSettings('clean install', true) } - sh 'mvn clean install -DskipTests' } } } @@ -44,7 +44,9 @@ pipeline { stage('Build submarine-cloud') { steps { timeout(30) { - sh 'mvn clean install' + script { + maven.runMavenWithSubmarineSettings('clean install', false) + } } } }