Set real jobs for parallel nested pipeline.
This commit is contained in:
parent
33ee929fe2
commit
5b9d2f597f
|
@ -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}"
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue