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

Cloning workspace loses hidden files/directories

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
      None
    • Environment:
      Linux
    • Similar Issues:

      Description

      I upgraded to Jenkins 1.456 today, and now my jobs that use the Clone Workspace plugin are having problems because the workspace tar.gz that is created when the job completes no longer includes the .git directory. In 1.449, which I ended up downgrading back to, the default setting for files to include always pulls that in. I've verified this by running tar -tzf on the workspace.tar.gz; in 1.449 .git is there, in 1.456 it isn't.

      I wasn't able to force Jenkins to include it either. I tried putting "**/, **/.git" and other variations on that in the list of files to include, but none of them seemed to work.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Olivier Lamy
            Path:
            changelog.html
            http://jenkins-ci.org/commit/jenkins/d7d9cf4a8618e777c2303aec010f5443f13aeaf6
            Log:
            changelog entry for JENKINS-13165

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: changelog.html http://jenkins-ci.org/commit/jenkins/d7d9cf4a8618e777c2303aec010f5443f13aeaf6 Log: changelog entry for JENKINS-13165
            Hide
            whimboo Henrik Skupin added a comment -

            A pull request is up on github for 2 months now. Could anyone with privileges please check it and get landed if appropriate? Our work is massively blocked on a new version of this plugin.

            https://github.com/jenkinsci/jenkins-clone-workspace-scm-plugin/commit/0bfecdad2fddc44c43b96f88ed373ab225e330e6

            Thanks a lot!

            Show
            whimboo Henrik Skupin added a comment - A pull request is up on github for 2 months now. Could anyone with privileges please check it and get landed if appropriate? Our work is massively blocked on a new version of this plugin. https://github.com/jenkinsci/jenkins-clone-workspace-scm-plugin/commit/0bfecdad2fddc44c43b96f88ed373ab225e330e6 Thanks a lot!
            Hide
            hashar Antoine Musso added a comment -

            I have opened JENKINS-14355 about the fingerprint plugin not being able to fingerprint ".git/FETCH_HEAD. I believe it is a similar issue as dirscanner fixed by https://github.com/jenkinsci/jenkins/commit/0725d2765da789e02914deb4893a449eeda6a820#L1R102 but with Util.createFileSet() this time.

            Show
            hashar Antoine Musso added a comment - I have opened JENKINS-14355 about the fingerprint plugin not being able to fingerprint ".git/FETCH_HEAD. I believe it is a similar issue as dirscanner fixed by https://github.com/jenkinsci/jenkins/commit/0725d2765da789e02914deb4893a449eeda6a820#L1R102 but with Util.createFileSet() this time.
            Hide
            davehunt Dave Hunt added a comment -

            Please correct me if I'm wrong, but I believe this was fixed by JENKINS-13888

            Show
            davehunt Dave Hunt added a comment - Please correct me if I'm wrong, but I believe this was fixed by JENKINS-13888
            Hide
            whimboo Henrik Skupin added a comment -

            I tested this with the last Jenkins LTS version (1.509.2) and the Jenkins Clone Workspace SCM Plug-in version 0.5. Everything works fine now and the hidden files are included in the workspace archive. So this is indeed fixed!

            Thanks!

            Show
            whimboo Henrik Skupin added a comment - I tested this with the last Jenkins LTS version (1.509.2) and the Jenkins Clone Workspace SCM Plug-in version 0.5. Everything works fine now and the hidden files are included in the workspace archive. So this is indeed fixed! Thanks!

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                owenmehegan Owen Mehegan
              • Votes:
                5 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: