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

PagerDuty Pipeline support for consecutive failures

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pagerduty-plugin
    • None

      The UI has a "consecutive builds before trigger" feature, which is hugely useful.

      I don't think it's possible to use this feature via Pipeline, and I'm not aware of any workaround. Can we get this functionality for Pipeline jobs?

          [JENKINS-63025] PagerDuty Pipeline support for consecutive failures

          Ace Jones added a comment -

          You can wrap your pipeline in a `retry` block. E.g. `retry(3) {}` then as pagerduty as a post or whatever will run the pagerduty plugin after three tries.

          Ace Jones added a comment - You can wrap your pipeline in a `retry` block. E.g. `retry(3) {}` then as pagerduty as a post or whatever will run the pagerduty plugin after three tries.

            alexanderlz Alexander Leibzon
            danep Dane Powell
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: