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

Symlinks in a shelved project are archived as directories on Unix platforms


    • Similar Issues:


      When archived symlinks are converted to directories in the shelved project archive. After unshelved the project has about twice the size of the original project. Potentially editing build descriptions and names in the unshelved project can cause discrepancies, since the builds information is duplicated.

      Steps to reproduce:
      1. Create an empty test project (in this example project name is "empty")
      2. Run one or more builds
      3. Open shell on jenkins server in the home directory(/var/lib/jenkins/). Open dir jobs/builds/empty
      4. Run commands :
      ls -la .
      ls -la builds .
      du -hs *
      Save the output on the screen
      5. Open "empty" project page. Open "Shelve Project" link , Click on "Shelve Project" button
      6. Open jenkins start page. Open "Shelved Project" link. Checkmark "empty" project. Click on "Unshelve Project" button (BTW should be "Unshelve Projects"
      7. Repeat step 4. Compare the output with that at the step 4
      Expected : outputs should be the same.
      Actual: All symlinks are replaced with dir copies, the project size increased


          Issue Links


            yashma Adil Akhund-Zade created issue -
            yashma Adil Akhund-Zade made changes -
            Field Original Value New Value
            Attachment shelve-plugin-JENKINS-10986-yashma-001.diff [ 20829 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 141195 ] JNJira + In-Review [ 175436 ]
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "CloudBees Internal OSS-2450 (Web Link)" [ 18315 ]
            pierrebtz Pierre Beitz made changes -
            Assignee ashlux [ ashlux ] Pierre Beitz [ pierrebtz ]
            pierrebtz Pierre Beitz made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            pierrebtz Pierre Beitz made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            pierrebtz Pierre Beitz made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            pierrebtz Pierre Beitz made changes -
            Labels 2.1-fixed


              • Assignee:
                pierrebtz Pierre Beitz
                yashma Adil Akhund-Zade
              • Votes:
                10 Vote for this issue
                13 Start watching this issue


                • Created: