-
Notifications
You must be signed in to change notification settings - Fork 130
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
Unclear how to put RemainingActivityListener into "wait" mode #803
Comments
Ah, this clearly shows how much of a Java n00b I am - I finally discovered that So I guess the answer here is probably "you should have known" though the existance of this ticket shows that there is at least 1 person who's trying to use Jenkins but not experienced in Java, for whom this wasn't obvious at all (!) My best guess so far of how to actually set this would be to add the following line to
|
Might want to waitUntilNoActivity after running your job or whatever is hanging around: |
Ah nice, thanks so much for the reply - is that equivalent, but a better more explicit way of doing it? |
Yes tests should cleanup after themselves, |
Thank you, appreciate your help - I guess the google-ability of this ticket is probably sufficient to provide help to anyone else struggling as I did so happy to close this now. |
Describe your use-case which is not covered by existing documentation.
#672 describes false positives from
RemainingActivityListener
but I'm actually seeing a true positive where it correctly identifies that a branch indexing job is still running, but simply logs a warning and carries on and thenTemporaryDirectoryAllocator.dispose
fails to delete the tmp directory due to that exact problem.Stderr:
Resulting exception: (due to conflict between trying to delete a folder into which indexing.xml is being written)
I found the option to "wait" instead of just logging a warning, which sounds like what I need - but how/where do I actually set something to make
RemainingActivityListener.wait
be true?Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.
No response
Are you interested in contributing to the documentation?
No response
The text was updated successfully, but these errors were encountered: