Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15961

Add "ignore Push notification" option

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • git-plugin
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            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.

            turb 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).
            docwhat 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 kutzi added a comment -

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

            kutzi kutzi added a comment - See JENKINS-6846 for the core-side fix. So this still needs to be implemented on the git side.
            ddumbugie 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?

            ddumbugie 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?
            markewaite 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.

            markewaite 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.

            People

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

              Dates

                Created:
                Updated:
                Resolved: