Hi Gianluca, I can't trigger Job D directly from Job A. Actually in my project we are running integration tests in Job B and UI tests in Job C. So if both the builds are green then only i can merge the code to master in Job D. But thanks for your answer I will try it.
Thanks, Keshav. On Wed, Sep 2, 2020 at 1:26 AM Gianluca <[email protected]> wrote: > Hi, > why not triggering Job D directly from job A ? In this way, if you put > that in a stage after job B and job C is triggered ... it will only be > triggered if both succedded: > > stage("Run B and C") { > steps { > parallel( > "job B": { buildJob ... }, > "job C:" { build Job ... }, > } > > stage("Run D") { > steps { > // this will run only if both Job B and C succeed > buildJob > } > } > > Cheers, > Gianluca. > > Il giorno martedì 1 settembre 2020 alle 19:52:49 UTC+1 chenna keshav ha > scritto: > >> Hi, >> >> i have stuck with a small issue... i have a job A which triggers job B >> and job C. for job B and job C downstream job is job D.... i need this job >> D is to be triggered when job B and job C both are success. i have tried >> with "Build after other projects are build" with "trigger only if build is >> stable" option. its not working for me... the job is getting triggered even >> one of jobs is success. can some one please help me on this.......... >> >> Thanks, >> Keshav. >> > -- > 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/d4839902-97c8-4eb5-baa2-a080a400cfdbn%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/d4839902-97c8-4eb5-baa2-a080a400cfdbn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CABgMPaGxNu_fgFgFytBvZ72vZBKoLBqwj7XEN%3DzaQBMGW1%2BKYw%40mail.gmail.com.
