Manage NONE as entry.

This commit is contained in:
Manuele Simi 2019-09-25 09:21:45 -04:00
parent bb522f1c77
commit 20754acca4
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -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
}]}
}