diff --git a/Jenkinsfile b/Jenkinsfile index 694b245..7226ea5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,7 @@ // set the build options according to the Type of build def (options,maven_local_repo_path,maven_settings_file) = ['','',''] +def maven_jdk = 'OpenJDK 8' if (params.Type == 'SNAPSHOT-DRY-RUN') { echo "Configure Maven for SNAPSHOT-DRY-RUN artifacts" @@ -61,7 +62,7 @@ pipeline { } stage('build core components') { steps { - withMaven(jdk: 'OpenJDK 8', mavenLocalRepo: "${maven_local_repo_path}", mavenSettingsFilePath: "${maven_settings_file}") { + withMaven(jdk: "${maven_jdk}", mavenLocalRepo: "${maven_local_repo_path}", mavenSettingsFilePath: "${maven_settings_file}") { build 'maven-parent' build 'gcube-bom' build 'authorization-common-library'