Impossible to catch a failing build step

This issue is archived. You can view it, but you can't modify it. Learn more

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-1-code-1.groovy
          0.7 kB
          Giacomo
        2. example-1-log-1.txt
          2 kB
          Giacomo
        3. example-2-code-1.groovy
          1 kB
          Giacomo
        4. example-2-log-1.txt
          2 kB
          Giacomo
        5. example-3-code-1.groovy
          2 kB
          Giacomo
        6. example-3-log.txt
          2 kB
          Giacomo
        7. example-4-code.groovy
          2 kB
          Giacomo
        8. example-4-log.txt
          3 kB
          Giacomo

            Assignee:
            Unassigned
            Reporter:
            Giacomo
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: