Use a var to define the jdk used by Maven.

This commit is contained in:
Manuele Simi 2019-05-29 22:05:18 -04:00
parent e1167fcb45
commit f97f105687
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -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'