Set real jobs for parallel nested pipeline.

This commit is contained in:
Manuele Simi 2019-08-31 16:04:31 -04:00
parent 33ee929fe2
commit 5b9d2f597f
2 changed files with 3 additions and 5 deletions

4
Jenkinsfile vendored
View File

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

View File

@ -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 {