env.WORKSPACE path on windows is incorrect
if cleanWs() does not work properly, we do rm -rf. However, the path is not correct on Windows C:UsersjenkinsworkspaceTest_openjdk25_j9_sanity.jck_x86-64_windows_Personal_testList_1/aqa-tests/TKG
05:08:40.808 Exception: hudson.AbortException: Cannot delete workspace: Unable to delete 'C:\Users\jenkins\workspace\Test_openjdk25_j9_sanity.jck_x86-64_windows_Personal_testList_1\aqa-tests'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. (Discarded 2345 additional exceptions)
[Pipeline] sh
05:08:42.878 + rm -rf C:UsersjenkinsworkspaceTest_openjdk25_j9_sanity.jck_x86-64_windows_Personal_testList_1/aqa-tests/TKG
https://github.com/adoptium/aqa-tests/blob/337d87757fb974a42f1aa2ff26d07b8ab859f6fc/buildenv/jenkins/openjdk_tests#L671 https://github.com/adoptium/aqa-tests/blob/337d87757fb974a42f1aa2ff26d07b8ab859f6fc/buildenv/jenkins/JenkinsfileBase#L1672
We should create a Utils.groovy to store common functions.
related: https://github.com/adoptium/aqa-tests/issues/6006
@LongyuZhang could you work on this? Thanks
PR https://github.com/adoptium/aqa-tests/pull/6389 created to fix windows path.
Since the forceCleanWS was run before download the git repo, will leave the utils extraction in the future.
Thanks @LongyuZhang