Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45549

unable to stash in pipeline in readonly dir

XMLWordPrintable

      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.

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

              Created:
              Updated: