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

Unable to delete workspace due to locked git .pack file

    Details

    • Similar Issues:

      Description

      In our Jenkins site, all builds which are run on a windows Jenkins client and which do not delete their working direktory prior to run the job will fail with a message like:

      [WS-CLEANUP] Deleting project workspace...
      [WS-CLEANUP] Deferred wipeout is used...
      ERROR: [WS-CLEANUP] Cannot delete workspace: Unable to delete 'C:\Entw\Jenkins\workspace\Testautomatisierung\01_Smoketest\UFT\UFT_A_Smoketest_Master\.git\objects\pack\pack-5e75a4a1a37fced205964f0aeaadd0b304e779f8.pack'. Tried 3 times (of a maximum of 3) waiting 0,1 Sekunden between attempts.
      ERROR: Cannot delete workspace: Unable to delete 'C:\Entw\Jenkins\workspace\Testautomatisierung\01_Smoketest\UFT\UFT_A_Smoketest_Master\.git\objects\pack\pack-5e75a4a1a37fced205964f0aeaadd0b304e779f8.pack'. Tried 3 times (of a maximum of 3) waiting 0,1 Sekunden between attempts.
      Recording test results
      ERROR: Step ‘Publish JUnit test result report’ failed: Test reports were found but none of them are new. Did leafNodes run? 
      For example, C:\Entw\Jenkins\workspace\Testautomatisierung\01_Smoketest\UFT\UFT_A_Smoketest_Master\Results29012019125534536.xml is 3 Minuten 34 Sekunden old
      
      Recording test results
      ERROR: Step ‘Publish Micro Focus tests result’ failed: Test reports were found but none of them are new. Did leafNodes run? 
      For example, C:\Entw\Jenkins\workspace\Testautomatisierung\01_Smoketest\UFT\UFT_A_Smoketest_Master\Results29012019125534536.xml is 3 Minuten 34 Sekunden old
      ...
      Sucessfully imported JUnit XML results from Results29012019125534536.xml
      Finished: FAILURE
      

        Attachments

          Activity

          Hide
          gront Daniel Gront added a comment -

          Radi Berkovich, was it fixed in the latest version of the plugin?

          Show
          gront Daniel Gront added a comment - Radi Berkovich , was it fixed in the latest version of the plugin?
          Hide
          manishchristian Manish Christian added a comment -

          Radi Berkovich do we have any updates on this? I can confirm that workspace is not getting deleted because of locked .pack file.

          Show
          manishchristian Manish Christian added a comment - Radi Berkovich do we have any updates on this? I can confirm that workspace is not getting deleted because of locked .pack file.
          Hide
          radislavb Radi Berkovich added a comment - - edited

           

          Hi.

          I see here several directions

          1.first of all, please validate that you use hp-automation-tools-plugin. if so , we did several improvements in the area, 

          Please try to use our last beta version [5.8.5-beta|https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/hp-application-automation-tools-plugin/5.8.5-beta/hp-application-automation-tools-plugin-5.8.5-beta.hpi.]

          2.if you don't use  hp-automation-tools-plugin, then you've found a different problem and it most likely has a different root cause

          3.in the beginning of the thread I saw the following : Unable to delete 'C:\Jenkins\workspace\LabD_Build_Automation\Validate_LabD_VCSA\.git\FETCH_HEAD

          Root problem of this is locks of git and its not related to  hp-automation-tools-plugin plugin.

          Show
          radislavb Radi Berkovich added a comment - - edited   Hi. I see here several directions 1.first of all, please validate that you use hp-automation-tools-plugin. if so , we did several improvements in the area,  Please try to use our last beta version [5.8.5-beta| https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/hp-application-automation-tools-plugin/5.8.5-beta/hp-application-automation-tools-plugin-5.8.5-beta.hpi .] 2.if you don't use  hp-automation-tools-plugin, then you've found a different problem and it most likely has a different root cause 3.in the beginning of the thread I saw the following : Unable to delete 'C:\Jenkins\workspace\LabD_Build_Automation\Validate_LabD_VCSA\.git\FETCH_HEAD Root problem of this is locks of git and its not related to  hp-automation-tools-plugin plugin.
          Hide
          manishchristian Manish Christian added a comment -

          Radi Berkovich,

          Thank you so much!!!

          I can confirm that 5.8.5-beta have fixed workspace delete issue.

          We are on latest 5.8 version. Any plan on releasing stable version with the fix?

          Show
          manishchristian Manish Christian added a comment - Radi Berkovich , Thank you so much!!! I can confirm that 5.8.5-beta have fixed workspace delete issue. We are on latest 5.8 version. Any plan on releasing stable version with the fix?
          Hide
          gront Daniel Gront added a comment - - edited

          Hey Manish Christian, our release process takes some time in order to ensure that everything works correctly and no bugs are found. We are hoping to release a stable version in October.

          I am moving this issue to fixed.

          Show
          gront Daniel Gront added a comment - - edited Hey Manish Christian , our release process takes some time in order to ensure that everything works correctly and no bugs are found. We are hoping to release a stable version in October. I am moving this issue to fixed.

            People

            • Assignee:
              radislavb Radi Berkovich
              Reporter:
              carsten_hilber Carsten Hilber
            • Votes:
              24 Vote for this issue
              Watchers:
              24 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: