• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • None

      With git plugin, when we request Push notification url from git post-receive hooks, all jobs are notified. That's great!

      But, in some cases (e.g. nightly builds like integration testing, Sonar, etc.), we may want to ignore this notification, even if there are new commits.

      The simpliest would be to add a "Ignore Push notification" checkbox for this special case.

          [JENKINS-15961] Add "ignore Push notification" option

          Note: workaround is to start the build each night instead of polling the repo, but in this case we start it even nothing is new.

          Sylvain Veyrié added a comment - Note: workaround is to start the build each night instead of polling the repo, but in this case we start it even nothing is new.

          Here are some alternatives to adding an "ignore Push notification" option:

          • Add a "Build Trigger" that if selected will let a build be kicked off by the git plugin on a push notification. (This is the inverse of the above, which I think is more obvious). Without this "Build Trigger" then the push will be ignored.
          • Only kick off a build if the polling is more frequent than a certain threshold (such as 30 minutes).

          Christian Höltje added a comment - Here are some alternatives to adding an "ignore Push notification" option: Add a "Build Trigger" that if selected will let a build be kicked off by the git plugin on a push notification. (This is the inverse of the above, which I think is more obvious). Without this "Build Trigger" then the push will be ignored. Only kick off a build if the polling is more frequent than a certain threshold (such as 30 minutes).

          kutzi added a comment -

          See JENKINS-6846 for the core-side fix. So this still needs to be implemented on the git side.

          kutzi added a comment - See JENKINS-6846 for the core-side fix. So this still needs to be implemented on the git side.

          Kihyun Yun added a comment -

          I've found an option which is named "Don't trigger a build on commit notifications". This option can be added via "Additional Behaviours".

          Is this option what you want?

          Kihyun Yun added a comment - I've found an option which is named "Don't trigger a build on commit notifications". This option can be added via "Additional Behaviours". Is this option what you want?

          Mark Waite added a comment -

          After almost a year without response to the question "does the existing option meet your need", I'm closing this as resolved. Ignore commit notification is available as a check box.

          Mark Waite added a comment - After almost a year without response to the question "does the existing option meet your need", I'm closing this as resolved. Ignore commit notification is available as a check box.

            ndeloof Nicolas De Loof
            turb Sylvain Veyrié
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: