-
Bug
-
Resolution: Duplicate
-
Major
-
Jenkins version 2.138.3 running on Linux
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.
- duplicates
-
JENKINS-54678 Compression trick not supported by JEP-210
-
- Open
-
[JENKINS-55024] Pipeline Job Plugin (workflow-job-plugin) gives empty console output when an error occurs
Labels | Original: pipeline plugin | New: pipeline pipeline-triaged plugin |
Resolution | New: Incomplete [ 4 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
I don't think the changes in workflow-job 2.29 and workflow-api 2.32 related to WorkflowRun#getLogFile are related to an empty console view, since the WorkflowRun#getLogFile method is not actually used when displaying logs.
The stack trace you posted shows that the call to new RandomAccessFile here threw a FileNotFoundException when trying to open the logs for a step because the log file did not exist. What does the build folder for the build look like? Does the log file exist? Are there any other errors in the Jenkins logs that seem relevant? It seems like something else might have deleted that file, but I am not sure what could have caused it. Do you know if the build that was broken was building when Jenkins was restarted for the plugin update, or had it already completed? CC jglick in case this scenario rings a bell to him.