OK, latest news: the processes seem to be running as another user then the current one. When I don't preselect the tasklist output by the current user, I see my processes and killing them works. Somewhat surprising though and hard to debug as you cant display the current user name (replaced in the output by '***').
Thanks for listening! :-) Regards, Christoph [email protected] schrieb am Mittwoch, 28. Juli 2021 um 19:02:31 UTC+2: > It's a script using tasklist and taskkill. There's just an errorlevel. > I got a step further: that script is searching the tasklist by filtering > for the current user and that does not give a result. I am trying it > without that filter during the next nightly build. > Then I'll see if I still have a problem with access rights. > > > > > [email protected] schrieb am Dienstag, 27. Juli 2021 um 18:52:04 > UTC+2: > >> Can you find out what is going wrong? Add a call to GetLastError maybe? >> >> On Tue, Jul 27, 2021 at 2:22 AM '[email protected]' via Jenkins >> Users <[email protected]> wrote: >> >>> >>> Hi everybody, >>> >>> I am building and testing windows applications on windows machines. >>> I have a number of tests which start several processes in the >>> background. After each of the tests I call a script to end the processes in >>> case something went wrong end they didn't end in a proper way during the >>> tests. This script makes use of taskkill. On my local machine everything >>> works well. After each test all remaining processes are killed properly. >>> However when I run this on jenkins the taskkill seems not to work: the >>> processes are still alive after the call and this leads to problems during >>> the whole test run up to deadlocks. >>> As in the scripts the test process and kill is called directly in a row >>> from a make environment I can't imagine where the problem is. >>> Is there any reason why I can't kill a process created from the same >>> environment before? Is there a proper way to handle this on jenkins? >>> I am working with a client-server setup if that's important. >>> >>> Many thanks for any kind of advice! >>> >>> Regards, >>> Christoph >>> >>> -- >>> 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/ab4ba3d4-99b1-4b48-bce8-417bb74f95den%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/jenkinsci-users/ab4ba3d4-99b1-4b48-bce8-417bb74f95den%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- 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/0d6c3e43-eff5-48be-8674-6b8c2b5ffc07n%40googlegroups.com.
