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

Impossible to catch a failing build step

XMLWordPrintable

      Hi,

       After upgrading the Build Step plugin, it seems impossible to avoid making the upstream pipeline fail when a downstream pipeline fails, even setting "propagate: false". This happens only when the build step is called in sub-stages. I have attached three examples with their corresponding logs. In the first example, everything works as expected because the error in the downstream pipeline doesn't prevent calling the "success" post-action of the upstream pipeline. As you can see from the logs, the post-action "successful" is never called in the other two examples.

      I think the change has been introduced with this pull request: https://github.com/jenkinsci/pipeline-buil.d-step-plugin/pull/107

      I'm not sure this can be defined as a bug requiring a fix, but it would be great if you could let us know how we should handle downstream pipelines failing inside the inner "stages" block

       

      Thank you for you help

        1. example-4-log.txt
          3 kB
        2. example-4-code.groovy
          2 kB
        3. example-3-log.txt
          2 kB
        4. example-3-code-1.groovy
          2 kB
        5. example-2-log-1.txt
          2 kB
        6. example-2-code-1.groovy
          1 kB
        7. example-1-log-1.txt
          2 kB
        8. example-1-code-1.groovy
          0.7 kB

            Unassigned Unassigned
            giaco9 Giacomo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: