kalyan
kalyan

Reputation: 453

upstream job should only trigger downstream job only after its sucess build using Groovy pipeline script

I have two Jenkins jobs one is a groovy pipeline. other is a normal freestyle project with a plugin to trigger remote Jenkins. The groovy pipeline should only trigger another freestyle project after its successful build.

Upvotes: 0

Views: 799

Answers (1)

StephenKing
StephenKing

Reputation: 37580

Use the build step in your pipeline to trigger another build. If the pipeline failed before, it wouldn't reach that point.

Upvotes: 2

Related Questions