Jenkins Multibranch Pipeline Scan infinite re-build

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Hi, I would post here a question already asked onhttps://stackoverflow.com/questions/49736540/jenkins-multibranch-pipeline-scan-infinite-re-build.
       
      I have to deal with the following scenario:

      1. I am running my Jenkins Pipeline on Blue Ocean + Git (+ Maven).
      2. I have setup the "Scan Multibranch Pipeline" option to check every X minutes if something has changed on the Git repo, and in that case start the job again...
      3. My pipeline implements the usual build and test stages.
      4. My pipeline, as last stage, increments the snapshot version and pushes the updated POM to Git.

      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 very much!

            Assignee:
            Unassigned
            Reporter:
            Antonio Petricca
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: