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

unstash fails to overwrite read-only files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 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.

            jglick Jesse Glick
            mcobden Marcus Cobden
            Votes:
            32 Vote for this issue
            Watchers:
            27 Start watching this issue

              Created:
              Updated: