jenkinsci / jenkinsci/change-assembly-version-plugin
[JENKINS-65334] Cannot cleanup workspace when use change-assembly-version-plugin
- Dominant language
- Java
- Stars
- 16
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
My pipeline has this operation:
changeAsmVer versionPattern: '${BUILD_VERSION}'
And ends with:
cleanWs()
The clean operation always gives: ERROR: Cannot delete workspace: Unable to delete 'c:\jenkins\workspace\WinTech-adhoc'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
If I remove changeAsmVer then no cleanup error. Clearly, the changeAsmVer is locking a file or something that prevents the cleanup from working.
---
Originally reported by
sbroshar, imported from: Cannot cleanup workspace when use change-assembly-version-plugin
Raw content of original issue
My pipeline has this operation:
changeAsmVer versionPattern: '${BUILD_VERSION}'
And ends with:
cleanWs()
The clean operation always gives: ERROR: Cannot delete workspace: Unable to delete 'c:\jenkins\workspace\WinTech-adhoc'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
If I remove changeAsmVer then no cleanup error. Clearly, the changeAsmVer is locking a file or something that prevents the cleanup from working.
environment
```
Windows 10 for jenkins controller and agent
Jenkins 2.263.3
```
Contributor guide
Assessment
This issue has not been assessed yet.