From 20754acca4506e152c8cff416a7598bb96acc524 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Wed, 25 Sep 2019 09:21:45 -0400 Subject: [PATCH] Manage NONE as entry. --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7d7f7bc..6f80c2e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 }]} }