From 93970747d3bf1304248828325ed79bb399ab63dc Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Wed, 25 Sep 2019 09:43:37 -0400 Subject: [PATCH] Add stage to build the maven-parent at each execution (and only once). --- Jenkinsfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 6f80c2e..11454a1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -94,6 +94,15 @@ pipeline { } } + // the maven-parent needs to be built (once) at each execution + stage('build maven-parent') { + steps { + withMaven(jdk: "${maven_jdk}", mavenLocalRepo: "${maven_local_repo_path}", mavenSettingsFilePath: "${maven_settings_file}") { + buildComponents maven-parent + } + echo "Done with maven-parent" + } + } stage('build SmartGears components') { steps { withMaven(jdk: "${maven_jdk}", mavenLocalRepo: "${maven_local_repo_path}", mavenSettingsFilePath: "${maven_settings_file}") {