unstash fails to overwrite read-only files

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: workflow-api-plugin
    • None

      We're using stash & unstash to pass a checked out git repository between steps in our workflow.
      On first run the unstash works successfully, however on a second run the unstash fails because some of the files in the `.git` directory are read-only.

      I've attached the stack trace, it's a bit misleading, we've fixed it by running a `sh 'chmod -R u+w .git'` before the unstash step.

            Assignee:
            Jesse Glick
            Reporter:
            Marcus Cobden
            Votes:
            32 Vote for this issue
            Watchers:
            27 Start watching this issue

              Created:
              Updated: