jenkinsci / jenkinsci/change-assembly-version-plugin

[JENKINS-65334] Cannot cleanup workspace when use change-assembly-version-plugin

Open
#90 0 comments 0 reactions 0 assignees View on GitHub
component:change-assembly-version-plugin imported-jira-issue priority:major resolution:unresolved
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


  • status: Open
  • priority: Major
  • component(s): change-assembly-version-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20260220-221244

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.