-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-54346] && [JENKINS-55505] #56
base: master
Are you sure you want to change the base?
Conversation
The last sha1 seems to fix all the issues I'v seen, but it's a ugly dirty hack but for now the only possible way to be 100% sure, that after leaving the tee block, the output file is 100% closed. Maybe someone with more experience in the core architecture of Jenkins has a better solution. Issues I've encoutered:
|
Can you please have a look at #62 and give me your thoughts whether that solution will work for you as well? |
I'm test on my jenkins infra :
With it's script and
|
@@ -49,15 +49,15 @@ | |||
import org.jenkinsci.plugins.workflow.steps.StepExecution; | |||
import org.kohsuke.stapler.DataBoundConstructor; | |||
|
|||
public class TeeStep extends Step { | |||
public class TeeStep extends Step implements Serializable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes no sense AFAICT, but anyway I think was due to be superseded by #62?
This pull requests fixed two jira tickets that were raised because of issues with the TeeStep on Windows.
Both issues were caused by the fact that the outputstream to the file opened by the Tee step, was never closed.