migrate downstream jobs to pipeline

28 views
Skip to first unread message

Shurik

unread,
Jul 24, 2016, 8:52:55 AM7/24/16
to Jenkins Users
Hi,

I have the below graph job definition ( via downstream ) and I want to migrate it to pipeline with parallel options.

              A
            /    \
           B    C
          /  \  /
         E   D

A -> B, C
B -> E, D
C -> D

B and C can run in parallel, D need to wait till B and C finished and E can run after B finished.

How I can do the same in pipeline ?

I tried the below, but 
stage 'Stage 1'
        build 'A'
       
       parallel one: {
             build 'B'
        }, second: {
            build 'C'
        }
       
      build 'D'

      build 'E'
}

in this configuration E will wait till C job finished.

Thanks,
Shurik

Baptiste Mathus

unread,
Jul 24, 2016, 9:31:14 AM7/24/16
to jenkins...@googlegroups.com

Move 'build E' instruction in the 'one' closure, just after build B.


--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/064a3396-6afa-451e-a9b5-b3877a3cf701%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shurik

unread,
Jul 24, 2016, 3:00:41 PM7/24/16
to Jenkins Users, m...@batmat.net
Do you mean something like this ?

 parallel one: {
             build 'B'
             build 'E'
        }, second: {
            build 'C'
        }
       
      build 'D'


if yes, than in this situation D will be depend on E and I don't want it.
Reply all
Reply to author
Forward
0 new messages