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.

          [JENKINS-45549] unable to stash in pipeline in readonly dir

          Jesse Glick added a comment -

          Complete steps to reproduce from scratch, please, and complete error message. From what I see this has nothing to do with stash, rather with sh.

          Jesse Glick added a comment - Complete steps to reproduce from scratch, please, and complete error message. From what I see this has nothing to do with stash , rather with sh .

            Unassigned Unassigned
            shiqiyang Shiqi Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: