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

          Michael Neale created issue -
          Michael Neale made changes -
          Rank New: Ranked higher
          Michael Neale made changes -
          Link New: This issue duplicates JENKINS-38750 [ JENKINS-38750 ]

          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 made changes -
          Link Original: This issue duplicates JENKINS-38750 [ JENKINS-38750 ]
          Michael Neale made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]

          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...)
          Michael Neale made changes -
          Assignee Original: rsandell [ rsandell ]
          Vivek Pandey made changes -
          Attachment New: screenshot-1.png [ 40162 ]

          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:

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

              Created:
              Updated: