[JIRA] (JENKINS-59735) Tee step intermittently truncates output

3 views
Skip to first unread message

jonathan@riv.al (JIRA)

unread,
Oct 10, 2019, 4:58:02 PM10/10/19
to jenkinsc...@googlegroups.com
Jonathan B created an issue
 
Jenkins / Bug JENKINS-59735
Tee step intermittently truncates output
Issue Type: Bug Bug
Assignee: rsandell
Components: pipeline-utility-steps-plugin
Created: 2019-10-10 20:56
Environment: Jenkins 2.190.1
pipeline-utility-steps 2.3.1
Priority: Minor Minor
Reporter: Jonathan B

We have a pipeline with code along the lines of

```
tee('output.log')

{ sh 'terraform plan' }

```

and we've noticed that output.log is occasionally truncated (the end of the file has a predictable pattern, so we alert on when it's missing), while stdout, as shown in the Jenkins console log, is not truncated.

We've seen this happen even when output.log was not a large file (just a few kilobytes). It seems to happen the most when there's a lot of build congestion (many jobs running concurrently). It doesn't happen often and we haven't found a way to reproduce the issue at will.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

jonathan@riv.al (JIRA)

unread,
Oct 10, 2019, 4:58:03 PM10/10/19
to jenkinsc...@googlegroups.com
Jonathan B updated an issue
Change By: Jonathan B
We have a pipeline with code along the lines of

``` {code}
tee('output.log') {
  sh 'terraform plan'
}
``` {code}

and we've noticed that output.log is occasionally truncated (the end of the file has a predictable pattern, so we alert on when it's missing), while stdout, as shown in the Jenkins console log, is not truncated.

We've seen this happen even when output.log was not a large file (just a few kilobytes). It seems to happen the most when there's a lot of build congestion (many jobs running concurrently). It doesn't happen often and we haven't found a way to reproduce the issue at will.
Reply all
Reply to author
Forward
0 new messages