From 5b9d2f597f02886dc7c8eb360d6a3c022172ca94 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Sat, 31 Aug 2019 16:04:31 -0400 Subject: [PATCH] Set real jobs for parallel nested pipeline. --- Jenkinsfile | 4 +--- examples/dynamic_parallel_nested | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8505488..9e8335f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -76,9 +76,7 @@ echo "Configured dynamic stages: ${dynamicStages.inspect()}" pipeline { // see https://jenkins.io/doc/book/pipeline/syntax/#agent - agent { - label 'pipeline-agent' - } + agent any // see https://jenkins.io/doc/book/pipeline/syntax/#environment environment { JOB_OPTIONS = "${options}" diff --git a/examples/dynamic_parallel_nested b/examples/dynamic_parallel_nested index 1ee5609..54da9f3 100644 --- a/examples/dynamic_parallel_nested +++ b/examples/dynamic_parallel_nested @@ -1,4 +1,4 @@ -def apps = "job1,job2,job3,job4" +def apps = "maven-parent,gcube-bom,gx-rest" def applications = apps.split(",").findAll { it }.collect { it.trim() } def environment = env.ENVIRONMENT def version = env.VERSION @@ -20,7 +20,7 @@ for (int i = 0; i < applications.size(); i++) { } pipeline { - agent none + agent any stages { stage('Build apps(s)') { steps {