• 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.

          [JENKINS-33126] unstash fails to overwrite read-only files

          Marcus Cobden created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 168995 ] New: JNJira + In-Review [ 183314 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Component/s New: workflow-api-plugin [ 21711 ]
          Component/s Original: pipeline [ 21692 ]
          Dmitry Kamovsky made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Dmitry Kamovsky made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]

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

              Created:
              Updated: