jenkinsci / jenkinsci/workflow-durable-task-step-plugin
[JENKINS-45549] unable to stash in pipeline in readonly dir
- Dominant language
- Java
- Stars
- 46
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
the following code generates IOException:
dir($READONLY_DIR){
stash name: abc, includes:$SOMEFILE
}
running into error:
java.io.IOException: Failed to mkdirs: $READONLY_DIR@tmp/durable-XXXXXXXX
seems stash is trying to create dir with the dir given in context here
there are workaround of this (e.g. write to a different file) but I feel this can be solved by adding a parameter to control where that tmp file is stored.
---
Originally reported by shiqiyang, imported from: unable to stash in pipeline in readonly dir
Raw content of original issue
the following code generates IOException:
dir($READONLY_DIR){
stash name: abc, includes:$SOMEFILE
}running into error:
java.io.IOException: Failed to mkdirs: $READONLY_DIR@tmp/durable-XXXXXXXXseems stash is trying to create dir with the dir given in context here
there are workaround of this (e.g. write to a different file) but I feel this can be solved by adding a parameter to control where that tmp file is stored.
environment
```
jenkins 2.46.3
pipeline 2.5
```
Contributor guide
Assessment
This issue has not been assessed yet.