-
Bug
-
Resolution: Unresolved
-
Critical
-
None
Using the below pipeline script fails in the second stage and in any subsequent runs until the master or slave isn't restarted.
The error is:
ERROR: Cannot delete workspace...
The script:
stage('first') {
node() {
cleanWs()tee('output.log')
Unknown macro: { echo 'test' }}
}stage('second') {
node()Unknown macro: { cleanWs() echo 'cleaned' }}
Marked as critical due to the fact that slave/master restart is required to resolve the issue and allow further runs to wipe the workspace (until tee is used again).
- relates to
-
JENKINS-55505 tee on windows results in corrupt files
-
- Resolved
-
I created a pull request that solves this problem: https://github.com/jenkinsci/pipeline-utility-steps-plugin/pull/56