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

tool step does not report failures in its log

      If you attempt to install a tool that doesn't exist, the step will fail, but there is nothing in the steps log.

      You would see something like the attached in the stage view. The log should explain what is missing in the tool:

      (problem isn't with stage view, but is with the steps output)

      To reproduce:

      node {
        stage 'Checkout'
        checkout scm
        
        stage 'Build'
        def mvnHome = tool 'NONSENSE'
      }
      

      and look at the stage graph to see that it has no output

          [JENKINS-38776] tool step does not report failures in its log

          This issue isn't just related to a missing tool.  Any command that fails doesn't have its return code or any other failure reported in the log for that step/stage.  This is particularly frustrating when the timeout plugin or "parallel.failFast = true" feature of a Jenkinsfile terminates the build, but you can't tell why.

           

          Nicholas Klopfer-Webber added a comment - This issue isn't just related to a missing tool.  Any command that fails doesn't have its return code or any other failure reported in the log for that step/stage.  This is particularly frustrating when the timeout plugin or "parallel.failFast = true" feature of a Jenkinsfile terminates the build, but you can't tell why.  

          Michael Neale added a comment -

          Hrm perhaps this should be broadened to capture all failure logs where possible (the trick is each step has its own impl...)

          Michael Neale added a comment - Hrm perhaps this should be broadened to capture all failure logs where possible (the trick is each step has its own impl...)

          Vivek Pandey added a comment -

          michaelneale abayer Looks like this bug is specific to stage view plugin. Blueocean shows the error correctly:

          Vivek Pandey added a comment - michaelneale abayer Looks like this bug is specific to stage view plugin. Blueocean shows the error correctly:

          Michael Neale added a comment -

          jdumay I think we can close this as it works as expected in blue ocean (correctly shows the message)

          Michael Neale added a comment - jdumay I think we can close this as it works as expected in blue ocean (correctly shows the message)

            Unassigned Unassigned
            michaelneale Michael Neale
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: