Use a var to define the jdk used by Maven.
This commit is contained in:
parent
e1167fcb45
commit
f97f105687
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue