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

Build tagging does not work when using a local subdirectory for the GIT repo

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-client-plugin
    • None

      Using the "tag" function on a project build when a local subdirectory has been set for the GIT repo will lead to error:

      Error taggin repo 'master' : org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /var/lib/jenkins/jobs/my_project/workspace
      hudson.plugins.git.GitException: org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /var/lib/jenkins/jobs/my_project/workspace
      at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:201)
      at hudson.plugins.git.GitTagAction$TagWorkerThread$1.invoke(GitTagAction.java:194)
      at hudson.plugins.git.GitTagAction$TagWorkerThread$1.invoke(GitTagAction.java:181)
      at hudson.FilePath.act(FilePath.java:905)
      at hudson.FilePath.act(FilePath.java:878)
      at hudson.plugins.git.GitTagAction$TagWorkerThread.perform(GitTagAction.java:181)
      at hudson.model.TaskThread.run(TaskThread.java:127)
      Caused by: org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /var/lib/jenkins/jobs/my_project/workspace
      at org.eclipse.jgit.lib.BaseRepositoryBuilder.build(BaseRepositoryBuilder.java:575)
      at org.eclipse.jgit.api.Git.open(Git.java:113)
      at org.eclipse.jgit.api.Git.open(Git.java:97)
      at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:198)
      ... 6 more
      Trying next branch
      Completed

            ndeloof Nicolas De Loof
            herv herve martin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: