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

Pipeline builds status does not account for stages retries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • pipeline
    • None
    • Jenkins LTS 2.462.3, latest pipeline plugins

      Within a pipeline a stage is considered  as "Failed" if it failed the first time, even though a successful retry( ) has taken place afterwards. It ends-up with pipeline builds marked as Failed although all stages have finally succeeded.

      This behavior entirely defeats the purpose of retry() blocks, which is precisely to cope with transient errors in complex pipelines stages, allowing them to complete successfully.

      Thanks,

      Phil.

      PS: This works correctly on older versions of the plugin, retaining the status of the last retried step rather than the worst one...

       

        1. JENKINS-76131.tar.gz
          22 kB
          Mark Waite
        2. pipeline_stages.png
          8 kB
          Philippe Nobili
        3. set_build_status_builds.png
          14 kB
          Philippe Nobili

            Unassigned Unassigned
            pnobili Philippe Nobili
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: