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/98599bad-26b2-4aca-9362-33ea435e0f59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.