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') {
|
stage('build SmartGears components') {
|
||||||
steps {
|
steps {
|
||||||
withMaven(jdk: "${maven_jdk}", mavenLocalRepo: "${maven_local_repo_path}", mavenSettingsFilePath: "${maven_settings_file}") {
|
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"
|
echo "Done with SmartGears components"
|
||||||
}
|
}
|
||||||
|
@ -105,7 +105,7 @@ pipeline {
|
||||||
stage('build Enabling components') {
|
stage('build Enabling components') {
|
||||||
steps {
|
steps {
|
||||||
withMaven(jdk: "${maven_jdk}", mavenLocalRepo: "${maven_local_repo_path}", mavenSettingsFilePath: "${maven_settings_file}") {
|
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"
|
echo "Done with Enabling components"
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,7 @@ pipeline {
|
||||||
stage('build Data components') {
|
stage('build Data components') {
|
||||||
steps {
|
steps {
|
||||||
withMaven(jdk: "${maven_jdk}", mavenLocalRepo: "${maven_local_repo_path}", mavenSettingsFilePath: "${maven_settings_file}") {
|
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"
|
echo "Done with Data components"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue