-
Notifications
You must be signed in to change notification settings - Fork 19
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-25600 fix user abort #13
Conversation
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
} catch (InterruptedException intEx) { | ||
LOG.log(Level.FINEST, "Aborted by user"); | ||
child.kill(); | ||
listener.getLogger().println("Aborted by User. Terminated"); |
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.
I don't know all this code, so excuse my question. Will we have to forward the exception so the build is marked as aborted by Jenkins?
No its fine as the killed process will return an error code - from the log (job just sleeps for 60 seconds)
This way keeps the stack trace out of the log as the exception is handled anyway |
When a build is getting aborted, it shouldn't be marked as FAILURE but:
|
Added extra commit to PR As a side issue, if your run a matrix job and abort one of the jobs it sets
On Tue, Nov 18, 2014 at 9:18 AM, Henrik Skupin [email protected]
|
I cannot tell how this should work. But maybe you can test it by using the Shell executor and not XShell. That one should tell us how XShell should behave correctly. I did that for the above wrong final result already. |
I checked and the Shell executor works in the same way so I think we're good to carry on. |
Fantastic. Thanks a lot Jeremy! @mambu will you have time to review this PR? |
I was looking at the wiki and I forgot to add in any notes for the regex/time limit changes i made originally. Do you want me to update it? |
I added a try block around the log processing to kill the process if it is interrupted.