Manage NPE when a group is not available in the release file.
This commit is contained in:
parent
3cc9fb3c06
commit
8d65b2bd4f
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue