Manage NPE when a group is not available in the release file.

This commit is contained in:
Manuele Simi 2019-09-04 12:12:10 -04:00
parent 3cc9fb3c06
commit 8d65b2bd4f
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -97,7 +97,7 @@ pipeline {
stage('build SmartGears components') {
steps {
withMaven(jdk: "${maven_jdk}", mavenLocalRepo: "${maven_local_repo_path}", mavenSettingsFilePath: "${maven_settings_file}") {
buildComponents items: jsonConfig.gCube_release.Components.SmartGears.collect { "${it.name}" }
buildComponents items: jsonConfig.gCube_release.Components.SmartGears?.collect { "${it.name}" }
}
echo "Done with SmartGears components"
}
@ -105,7 +105,7 @@ pipeline {
stage('build Enabling components') {
steps {
withMaven(jdk: "${maven_jdk}", mavenLocalRepo: "${maven_local_repo_path}", mavenSettingsFilePath: "${maven_settings_file}") {
buildComponents items: jsonConfig.gCube_release.Components.Enabling.collect { "${it.name}" }
buildComponents items: jsonConfig.gCube_release.Components.Enabling?.collect { "${it.name}" }
}
echo "Done with Enabling components"
}
@ -113,7 +113,7 @@ pipeline {
stage('build Data components') {
steps {
withMaven(jdk: "${maven_jdk}", mavenLocalRepo: "${maven_local_repo_path}", mavenSettingsFilePath: "${maven_settings_file}") {
buildComponents items: jsonConfig.gCube_release.Components.Data.collect { "${it.name}" }
buildComponents items: jsonConfig.gCube_release.Components.Data?.collect { "${it.name}" }
}
echo "Done with Data components"
}