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

Pipeline Job Plugin (workflow-job-plugin) gives empty console output when an error occurs

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When upgrading to version 2.29 of the "Pipeline: Job" plugin, users had a completely empty console output in case of an error.

      Downgrading to version 2.28 fixed the issue.

      When investigating we found an error log that a log file could not be located:

      java.io.FileNotFoundException: /var/lib/jenkins/jobs/iText-merge-pipeline/builds/319/log (No such file or directory)

      See attachments for screenshots of the console output and the log.

      If I read the change log for version 2.29 

      • JENKINS-54128: Change the implementation of WorkflowRun#getLogFile to avoid creating a new temporary file each time the method is called.
      • Fix: Do not call WorkflowRun#getLogFile when an error occurs while opening the log file for a Pipeline to avoid logging an additional stack trace

      My guess would be that WorkflowRun#getLogFile is also not called when an error is thrown in a pipeline script.

        Attachments

          Issue Links

            Activity

            marco_andries Marco Andries created issue -
            vivek Vivek Pandey made changes -
            Field Original Value New Value
            Labels pipeline plugin pipeline pipeline-triaged plugin
            dnusbaum Devin Nusbaum made changes -
            Resolution Incomplete [ 4 ]
            Status Open [ 1 ] Resolved [ 5 ]
            amedee Amedee Van Gasse made changes -
            Attachment test-pipeline-Jenkinsfile [ 47403 ]
            amedee Amedee Van Gasse made changes -
            Resolution Incomplete [ 4 ]
            Status Resolved [ 5 ] In Review [ 10005 ]
            amedee Amedee Van Gasse made changes -
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            jglick Jesse Glick made changes -
            Labels pipeline pipeline-triaged plugin pipeline pipeline-triaged
            marco_andries Marco Andries made changes -
            Attachment image-2019-06-05-14-55-49-292.png [ 47593 ]
            marco_andries Marco Andries made changes -
            Attachment image-2019-06-05-14-56-21-611.png [ 47594 ]
            marco_andries Marco Andries made changes -
            Attachment image-2019-06-05-15-09-19-247.png [ 47595 ]
            dnusbaum Devin Nusbaum made changes -
            Link This issue duplicates JENKINS-54678 [ JENKINS-54678 ]
            dnusbaum Devin Nusbaum made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Closed [ 6 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              marco_andries Marco Andries
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: