jenkins - convert freestyle job to pipeline -
i have below graph job definition (via downstream) , want migrate pipeline parallel options.
/ \ b c / \ / e d -> b, c b -> e, d c -> d
b , c can run in parallel, d need wait till b , c finished , e can run after b finished.
how can same in pipeline ?
i tried below,
stage 'stage 1' build 'a' parallel one: { build 'b' }, second: { build 'c' } build 'd' build 'e'
in configuration e wait till c job finished.
well, if put build e inside parallel block b happen when build b done. think can add wait: false have parallel step not wait build. might problem if need build else after build e, though.
stage 'stage 1' build 'a' parallel one: { build 'b' build 'e', wait: false }, second: { build 'c' } build 'd'
Comments
Post a Comment