Error steps may change to show up as errors in pipeline view

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

XMLWordPrintable

      Notes
      This issue needs further investigation

      Original request
      In one of our more complex scripted pipelines with special exception/error handling, the error step visualization keeps changing after a while, so that it does not show the error step as failing anymore (and so also no auto-scroll to error works)!?

      I tried to reproduce it to no avail; this is the basic pipeline code (the last and active section in the code being the closest to the original one):

      node {
          // OK:
          /*
          stage('failing-stage') {
              echo 'hello'
              error 'fail on purpose...'
          }
          */
          
          // OK: shows msg in red and expands it
          /*
          stage('failing-stage') {
              echo 'hello'
              try {
                  error 'fail on purpose...'
              } catch (e) {
                  echo "Caught exception: ${e}"
              }
          }
          */
      
          // OK: shows msg in red and expands it
          /*
          stage('failing-stage') {
              echo 'hello'
              try {
                  error 'fail on purpose...'
              } catch (e) {
                  echo "Caught exception: ${e}"
                  throw e
              }
          }
          */
      
          // OK: shows msg in red and expands it
          stage('failing-stage') {
              echo 'hello'
              try {
                  error 'fail on purpose...'
              } catch (e) {
                  ansiColor('xterm') {
                    echo "\033[1;31mCaught exception: ${e}\033[0m bla bla"
                  }
                  throw e
              } finally {
                  echo "finally"
              }
          }
      }
      

      Initially it works fine and looks like this:

      But at one point it stops showing the error step as error! And the AJAX request that fetches the steps (e.g. https://<JENKINS URL>/blue/rest/organizations/jenkins/pipelines/My-Pipeline/runs/414/nodes/60/steps/) shows matching symptoms:

        1. image-2017-09-07-14-44-27-695.png
          34 kB
          Reinhold Füreder
        2. image-2017-09-07-14-50-42-300.png
          16 kB
          Reinhold Füreder
        3. image-2017-10-03-16-39-04-396.png
          42 kB
          Reinhold Füreder
        4. image-2018-10-30-12-30-10-803.png
          90 kB
          Reinhold Füreder
        5. image-2018-10-30-12-32-53-068.png
          67 kB
          Reinhold Füreder
        6. image-2018-11-13-10-19-20-710.png
          99 kB
          Reinhold Füreder
        7. linkchecker-77-with-bug.PNG
          68 kB
          Reinhold Füreder
        8. linkchecker-79-without-bug.PNG
          92 kB
          Reinhold Füreder
        9. screenshot-1.png
          45 kB
          Reinhold Füreder
        10. TK-Branch-am-nächsten-Tag-BUG.png
          56 kB
          Reinhold Füreder
        11. TK-Branch-am-nächsten-Tag-Stage-mit-Fehler-BUG.png
          95 kB
          Reinhold Füreder
        12. TK-Branch-am-selben-Tag.png
          175 kB
          Reinhold Füreder
        13. TK-Branch-am-selben-Tag-ClassicUI.png
          274 kB
          Reinhold Füreder

            Assignee:
            Unassigned
            Reporter:
            Reinhold Füreder
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: