Run terminateTestProcesses before git clone
We do forceCleanWS() before git clone to ensure a clean workspace.
https://github.com/adoptium/aqa-tests/blob/master/buildenv/jenkins/openjdk_tests#L457
We have noticed on Windows (maybe z/OS as well), if the previous job exited not cleanly (i.e., Jenkins restarted) and left a running Java process holding the folder, the next job that lands on the machine cannot run cleanWs. When this happens, the job will fail and the machine will be marked offline automatically.
I think we should do a little more - try to kill the level over processes. It means to run terminateTestProcesses.sh to terminate any left over processes before the first forceCleanWS(). Because the repo is not cloned yet at this time, we need to download the script alone/separately and run it before forceCleanWS().
@LongyuZhang could you work on this? Thanks