I've messed with { :) the following is correct
pipeline {
agent any
stages {
stage('parallel'){
parallel {
stage('Init') {
steps {
echo 'NOOP'
}
}
stage('JOB1') {
steps {
echo 'NOOP'
}
}
stage('JOB2') {
steps {
echo 'NOOP'
}
}
}
}
}
}
El jueves, 4 de abril de 2019, 19:23:38 (UTC+2), Ivan Fernandez Calvo
escribió:
>
> it is incorrect, you have a stages directive inside parallel so you only
> have one stage filled with serial stages, the following pipeline is correct
> (if I do not make any pitfall with the {) see
> https://jenkins.io/doc/book/pipeline/syntax/#parallel
>
> pipeline {
> agent any
> parallel {
> stage('Init') {
> steps {
> echo 'Hello Testing'
> build 'TEST'
> }
> }
> stage('JOB1') {
> steps {
> build 'TEST1'
> }
> }
> stage('JOB2') {
> steps {
> build 'TEST2'
> }
> }
> }
> }
>
>
>
> El jueves, 4 de abril de 2019, 12:52:04 (UTC+2), [email protected]
> escribió:
>>
>> Hi All,
>>
>> Through Blue Ocean Plugin created a pipeline job and want to execute the
>> Jobs inside the "Jenkinsfile" in parallel .
>> Need help on this ..here is the code which is executing sequentally
>> ============
>> pipeline {
>> agent any
>> parallel {
>> stages {
>> stage('Init') {
>> steps {
>> echo 'Hello Testing'
>> build 'TEST'
>> }
>> }
>> stage('JOB1') {
>> steps {
>> build 'TEST1'
>> }
>> }
>> stage('JOB2') {
>> steps {
>> build 'TEST2'
>> }
>> }
>> }
>> }
>> }
>> ===================
>>
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/739c4f59-e4c1-4cc5-8535-38db806fa107%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.