We worked around a similar issue in the past with selenium with a job that
would leave the webdriver process behind sometimes.
The idea for you is to find the right command for finding then killing
processes under Windows (or do whatever cleanup is required).
Then just call that before or after each build.

Le 6 oct. 2016 6:11 PM, "Greg Fraley" <[email protected]> a écrit :

> We have a build step that runs a TestNG suite, with the command looking
> something like this:
>
> java -jar -Done-jar.main.class=org.testng.TestNG the-jar.jar TheTest.xml
>
>
>
> If the process is aborted in any way (manual intervention, Jenkins build
> timeout, etc.) OR if the slave loses connection from the master long enough
> to fail the build, then there is a Java process left behind.
>
> This is particularly damaging to us, as we load a DLL in the Java process,
> locking the file handle.  If we attempt the job again, we cannot load the
> DLL again, meaning that all future builds will fail without manual
> intervention (killing the leftover process manually).
>
> Has anyone encountered a similar problem/have a workaround/have the
> ability to escalate a bug, if necessary?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/11c2dda4-ed02-43ba-966c-fddc7c8766f9%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/11c2dda4-ed02-43ba-966c-fddc7c8766f9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7HdYW1_S%3DHD%2Bpsu7j6MEhk1FE9_LrYgfGete82ZyvkYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to