aqa-tests icon indicating copy to clipboard operation
aqa-tests copied to clipboard

env.WORKSPACE path on windows is incorrect

Open llxia opened this issue 6 months ago • 1 comments

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

job link

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

llxia avatar Jun 26 '25 17:06 llxia

@LongyuZhang could you work on this? Thanks

llxia avatar Jun 26 '25 17:06 llxia

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.

LongyuZhang avatar Jul 07 '25 20:07 LongyuZhang

Thanks @LongyuZhang

llxia avatar Jul 08 '25 00:07 llxia