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

Errors on block-scoped steps not represented in Blue Ocean

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None
    • Blue Ocean 1.1.4, core 2.66 or something...
    • Blue Ocean - Candidates

      When you've got a Pipeline like:

      stage('foo') {
          node {
              withCredentials([string(credentialsId:'not-real', variable:'WHO_CARES')]) {
                  echo "This will never happen."
              }
          }
      }
      

      You'll get a page like the attached screenshot - there's an error, specifically in withCredentials because I gave it a bogus credential ID - but since withCredentials isn't an atomic step, it's not represented on its own in the Blue Ocean UI. So it looks like no steps were run and there's nowhere to find the error!

      In the second case, with a slightly different Pipeline:

      stage('foo') {
          node {
              echo "splode"
              withCredentials([string(credentialsId:'not-real', variable:'WHO_CARES')]) {
                  echo "This will never happen."
              }
          }
      }
      

      ..there's a step that ran before the withCredentials block, so even though it actually succeeded, it's now marked as failed and there's still no way to find the actual log for the withCredentials error!

          [JENKINS-45380] Errors on block-scoped steps not represented in Blue Ocean

          Andrew Bayer created issue -
          James Dumay made changes -
          Sprint New: Blue Ocean 1.2-beta4 [ 361 ]
          James Dumay made changes -
          Rank New: Ranked higher
          James Dumay made changes -
          Rank New: Ranked higher
          James Dumay made changes -
          Epic Link New: JENKINS-43953 [ 181485 ]
          Ben Walding made changes -
          Link New: This issue is related to JENKINS-44614 [ JENKINS-44614 ]
          James Dumay made changes -
          Sprint Original: Blue Ocean 1.2-beta4 [ 361 ] New: Blue Ocean 1.2 [ 326 ]
          James Dumay made changes -
          Rank New: Ranked lower
          James Dumay made changes -
          Rank New: Ranked higher
          James Dumay made changes -
          Assignee New: Vivek Pandey [ vivek ]
          James Dumay made changes -
          Sprint Original: Blue Ocean 1.4 - candidates [ 326 ] New: Blue Ocean 1.4 - beta 2 [ 416 ]

            Unassigned Unassigned
            abayer Andrew Bayer
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: