I had a similar need. I ended up querying git to give list of all files that were changed in PR. And then have logic around what files would be wrapped in "if, else"/ "when" block. On Tuesday, July 2, 2019 at 6:48:23 AM UTC-7, Vijay Gongle wrote: > > I have a Jenkins pipeline which has 10 Jobs configured to run one after > the other in the post build action. > Anytime there's a change in Job's related git code, the build is triggered > and all the following jobs run though rest of the Job code were not > committed. > > For e.g, in a series of 10 jobs in the pipeline, if there's a code change > in 2nd job but not in 3rd job then I would like to skip the 2nd job and > build the 3rd job directly. > Likewise, any job where the code is not changed, would like to skip and > jump to following job. > > Please help me if there;s a way to resolve this unwanted builds in the > pipeline. >
-- 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/30c85793-81c0-4b16-9cb0-bc40d62bede1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
