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

GIT plug-ins keep lock on workspace file if branch use default insted of master. So unable to clean workspace.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      Jenkins Version 1.437. Windows 64 bit.
    • Similar Issues:

      Description

      We have failure of clean workspace when a new build start. File in workspace are locked. We have found out that the issue goes away if instead of using default for branch we set to "master". It seems the plug-in logic to detect branches to build is keeping lock on files.

        Attachments

          Activity

          Hide
          wannessels Wannes Sels added a comment -

          Normally I'd fork on Github, but I can't ssh to the outside world at work, so here's a patch instead

          Show
          wannessels Wannes Sels added a comment - Normally I'd fork on Github, but I can't ssh to the outside world at work, so here's a patch instead
          Hide
          patrik Patrik Johansson added a comment -

          I am seeing the same problem. Would anyone have the possibility to include the patch into the coming release?

          Show
          patrik Patrik Johansson added a comment - I am seeing the same problem. Would anyone have the possibility to include the patch into the coming release?
          Hide
          oliora Andrey Upadyshev added a comment - - edited

          Same problem. This is really annoying problem because it's impossible to cleanup a workspace. And after cleanup try, the Git repository became corrupted and all next builds fail until Jenkins slave service is restarted and workspace cleaned.

          Show
          oliora Andrey Upadyshev added a comment - - edited Same problem. This is really annoying problem because it's impossible to cleanup a workspace. And after cleanup try, the Git repository became corrupted and all next builds fail until Jenkins slave service is restarted and workspace cleaned.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Nicolas De Loof
          Path:
          src/main/java/hudson/plugins/git/util/DefaultBuildChooser.java
          src/main/java/hudson/plugins/git/util/GitUtils.java
          src/main/java/hudson/plugins/git/util/InverseBuildChooser.java
          http://jenkins-ci.org/commit/git-plugin/e86d5eb48c9ddd6235e86bc52010207a8eed203f
          Log:
          [FIXED JENKINS-12188] close JGit repository

          Compare: https://github.com/jenkinsci/git-plugin/compare/166b4f2fe4c5...e86d5eb48c9d


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: src/main/java/hudson/plugins/git/util/DefaultBuildChooser.java src/main/java/hudson/plugins/git/util/GitUtils.java src/main/java/hudson/plugins/git/util/InverseBuildChooser.java http://jenkins-ci.org/commit/git-plugin/e86d5eb48c9ddd6235e86bc52010207a8eed203f Log: [FIXED JENKINS-12188] close JGit repository Compare: https://github.com/jenkinsci/git-plugin/compare/166b4f2fe4c5...e86d5eb48c9d – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .
          Hide
          kinddragon Arkadiy Shapkin added a comment - - edited

          I have this bug with git plugin version 1.3.0

          Show
          kinddragon Arkadiy Shapkin added a comment - - edited I have this bug with git plugin version 1.3.0

            People

            • Assignee:
              abayer Andrew Bayer
              Reporter:
              sebtardif Sebastien Tardif
            • Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: