Skip to content

env.WORKSPACE path on windows is incorrect #6371

@llxia

Description

@llxia

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

sh "rm -rf ${env.WORKSPACE}/aqa-tests/TKG"

sh "rm -rf ${env.WORKSPACE}/aqa-tests/TKG"

We should create a Utils.groovy to store common functions.

related: #6006

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions