Hi Adharsha,

We use this in our pipeline and works:

 

def job = build([
    job: “Job/name”,
    wait: true,
    propagate: false
])

 

What are the errors that you are experience on doing it?

Can you add more details?

 

Cheers,

Gianluca.

 

From: [email protected] <[email protected]> On 
Behalf Of Adharsha sri
Sent: 17 December 2021 13:46
To: [email protected]
Subject: Trigger upstream job

 

Hi Team,

 

Need to trigger the upstream job from the run downstream job.

 

We are able to trigger the down stream job from upstream job but not in reverse 
direction.  Can you please help us.

 

Requirement:

 

First job <-- Second job

 

When I run second job it should trigger upstreamjob (I.e. first job). And first 
job should be independent.

 

Thanks,

Adharsha.

 

 

-- 
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] 
<mailto:[email protected]> .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAJWGB6q%3DZ7c0ei39cuYqqDjYUowBp0A_rk3TGqqrCpQD_LOvbQ%40mail.gmail.com
 
<https://groups.google.com/d/msgid/jenkinsci-users/CAJWGB6q%3DZ7c0ei39cuYqqDjYUowBp0A_rk3TGqqrCpQD_LOvbQ%40mail.gmail.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/00c401d7f34c%24eebc7070%24cc355150%24%40gmail.com.

Reply via email to