Reputation: 11026
I have to deal with the following scenario:
Step 4 triggers my issue: the "Scan Multibranch Pipeline" feature gets (forever) the branch as updated (by the commit at step 4).
How could I update the last "Scan Multibranch Pipeline" commit hash reference in order to stop job re-triggering?
Thank you in advance! Antonio
Upvotes: 2
Views: 2364
Reputation: 95
As @mkobit pointed out you can use a commit message and check that message again if you have already done that job and if there is no message commit it Here is the detailed link How to avoid Jenkins multibranch pipeline job triggering itself
Upvotes: 0
Reputation: 2882
Colleague of mine wrote a plugin,
https://github.com/jenkinsci/ignore-committer-strategy-plugin Adds a 'Ignore committer' strategy.
We used this to blacklist our CI Machine user. If the changeset contained the machine user, it would not be built.
Upvotes: 6