Skip to content
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

Close the stream properly to avoid lock when using jenkins ui and git scriptler repo #35

Merged
merged 1 commit into from
Sep 28, 2019

Conversation

paulthvt
Copy link

@paulthvt paulthvt commented Jan 4, 2019

I had issues when using both scriptler from jenkins ui plugin and git repo. My guess is that when opening the script on server, the stream is not closed and the java process keeps a lock on the file.
After adding the try with resources, I had no more issues.

@imod imod merged commit 9b733e2 into jenkinsci:master Sep 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants