Manage NONE as entry.
This commit is contained in:
parent
bb522f1c77
commit
20754acca4
|
@ -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"
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ pipeline {
|
|||
def buildComponents(args) {
|
||||
if (args.items) {
|
||||
parallel args.items?.collectEntries { name -> [ "${name}": {
|
||||
if (!"NONE".equalsIgnoreCase(name))
|
||||
if (name && !"NONE".equalsIgnoreCase(name))
|
||||
build name
|
||||
}]}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue