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

unzip cannot overwrite read-only files

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When trying to unzip a file which already exists and is read-only, the unzip step fails.

      Happens on Linux and Windows slaves.

      Tested with:

      node("my_node")
      { 
      sh("touch file.txt")
      sh("rm -f file.zip")
      zip(zipFile: "file.zip")
      sh("chmod -w file.txt")
      unzip(zipFile: "file.zip")
      }

      I get the following output in blue ocean:

      Extracting from /data/jenkins/workspace/ZipTest/file.zip
      Extracting: file.txt -> /data/jenkins/workspace/ZipTest/file.txt
      /data/jenkins/workspace/ZipTest/file.txt

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            rsandell rsandell
            Reporter:
            mrbernecker Werner Wessely
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: