While running a windows batch command from Jenkins Im unable to kill a process using taskkill windowtitle. I just get the following error:
INFO: No tasks running with the specified criteria.
If I write the same script on my own on my computer in CMD it works fine, and if I kill the process by name in Jenkins it works as well. Just cant kill by window title in Jenkins, which is what I have to do in this case.
My batch command is:
taskkill /F /FI "WINDOWTITLE eq Start*"