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

GitBlamer does not work if git workspace is in subfolder

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Windows Server 2012, CloudBees Jenkins Enterprise 2.46.24.0.2-fixed
    • 5.0.0-beta3

      We use a different .git Sub-Folder inner the Workspace for Git Repository.

      Workspace Folder:
      E:\SCM/WKS/safir_WAS/Template-Basis-20151013

      Git Folder:
      E:\SCM/WKS/safir_WAS/Template-Basis-20151013/GIT

      The Build failed with:

      17.07.2017 10:41:47 [WARNINGS] Parsing warnings in console log with parser Java Compiler (javac)
      17.07.2017 10:41:47 <Git Blamer> Using GitBlamer to create author and commit information for all warnings.
      17.07.2017 10:41:47 <Git Blamer> Getting blame results for all files in E:\SCM/WKS/safir_WAS/Template-Basis-20151013.
      17.07.2017 10:41:47  > git.exe rev-parse "0f01e15e5cce133c426e9f9a2603b2b2c2adedb0^{commit}" # timeout=10
      17.07.2017 10:41:47 ERROR: Build step failed with exception
      17.07.2017 10:41:47 hudson.plugins.git.GitException: Command "git.exe rev-parse "0f01e15e5cce133c426e9f9a2603b2b2c2adedb0^{commit}"" returned status code 128:
      17.07.2017 10:41:47 stdout:
      17.07.2017 10:41:47 stderr: fatal: Not a git repository (or any of the parent directories): .git

          [JENKINS-45572] GitBlamer does not work if git workspace is in subfolder

          Christian Häussler created issue -
          Christian Häussler made changes -
          Description Original: We use a different .git Sub-Folder inner the Workspace for Git Repository.

          Workspace Folder:
          _E:\SCM/WKS/safir_WAS/Template-Basis-20151013_

          Git Folder:
          _E:\SCM/WKS/safir_WAS/Template-Basis-20151013_/GIT

          The Build failed with:

          ??17.07.2017 10:41:47 [WARNINGS] Parsing warnings in console log with parser Java Compiler (javac)??
          ??17.07.2017 10:41:47 <Git Blamer> Using GitBlamer to create author and commit information for all warnings.??
          ??17.07.2017 10:41:47 <Git Blamer> Getting blame results for all files in E:\SCM/WKS/safir_WAS/Template-Basis-20151013.??
          ??17.07.2017 10:41:47  > git.exe rev-parse "0f01e15e5cce133c426e9f9a2603b2b2c2adedb0^\{commit}" # timeout=10??
          ??17.07.2017 10:41:47 ERROR: Build step failed with exception??
          ??17.07.2017 10:41:47 hudson.plugins.git.GitException: Command "git.exe rev-parse "0f01e15e5cce133c426e9f9a2603b2b2c2adedb0^\{commit}"" returned status code 128:??
          ??17.07.2017 10:41:47 stdout: ??
          ??17.07.2017 10:41:47 stderr: fatal: Not a git repository (or any of the parent directories): .git??????
          New: We use a different .git Sub-Folder inner the Workspace for Git Repository.

          Workspace Folder:
           _E:\SCM/WKS/safir_WAS/Template-Basis-20151013_

          Git Folder:
           _E:\SCM/WKS/safir_WAS/Template-Basis-20151013_/GIT

          The Build failed with:

          ??17.07.2017 10:41:47 [WARNINGS] Parsing warnings in console log with parser Java Compiler (javac)??
           ??17.07.2017 10:41:47 <Git Blamer> Using GitBlamer to create author and commit information for all warnings.??
           ??17.07.2017 10:41:47 <Git Blamer> Getting blame results for all files in E:\SCM/WKS/safir_WAS/Template-Basis-20151013.??
           ??17.07.2017 10:41:47  > git.exe rev-parse "0f01e15e5cce133c426e9f9a2603b2b2c2adedb0^\{commit}" # timeout=10??
           ??17.07.2017 10:41:47 ERROR: Build step failed with exception??
           ??17.07.2017 10:41:47 hudson.plugins.git.GitException: Command "git.exe rev-parse "0f01e15e5cce133c426e9f9a2603b2b2c2adedb0^\{commit}"" returned status code 128:??
           ??17.07.2017 10:41:47 stdout:??
           ??17.07.2017 10:41:47 stderr: fatal: Not a git repository (or any of the parent directories): .git??
          Christian Häussler made changes -
          Description Original: We use a different .git Sub-Folder inner the Workspace for Git Repository.

          Workspace Folder:
           _E:\SCM/WKS/safir_WAS/Template-Basis-20151013_

          Git Folder:
           _E:\SCM/WKS/safir_WAS/Template-Basis-20151013_/GIT

          The Build failed with:

          ??17.07.2017 10:41:47 [WARNINGS] Parsing warnings in console log with parser Java Compiler (javac)??
           ??17.07.2017 10:41:47 <Git Blamer> Using GitBlamer to create author and commit information for all warnings.??
           ??17.07.2017 10:41:47 <Git Blamer> Getting blame results for all files in E:\SCM/WKS/safir_WAS/Template-Basis-20151013.??
           ??17.07.2017 10:41:47  > git.exe rev-parse "0f01e15e5cce133c426e9f9a2603b2b2c2adedb0^\{commit}" # timeout=10??
           ??17.07.2017 10:41:47 ERROR: Build step failed with exception??
           ??17.07.2017 10:41:47 hudson.plugins.git.GitException: Command "git.exe rev-parse "0f01e15e5cce133c426e9f9a2603b2b2c2adedb0^\{commit}"" returned status code 128:??
           ??17.07.2017 10:41:47 stdout:??
           ??17.07.2017 10:41:47 stderr: fatal: Not a git repository (or any of the parent directories): .git??
          New: We use a different .git Sub-Folder inner the Workspace for Git Repository.

          Workspace Folder:
           _E:\SCM/WKS/safir_WAS/Template-Basis-20151013_

          Git Folder:
           _E:\SCM/WKS/safir_WAS/Template-Basis-20151013_/GIT

          The Build failed with:

          ??17.07.2017 10:41:47 [WARNINGS] Parsing warnings in console log with parser Java Compiler (javac)??
           ??17.07.2017 10:41:47 <Git Blamer> Using GitBlamer to create author and commit information for all warnings.??
           ??17.07.2017 10:41:47 <Git Blamer> Getting blame results for all files in E:\SCM/WKS/safir_WAS/Template-Basis-20151013.??
           ??17.07.2017 10:41:47  > git.exe rev-parse "0f01e15e5cce133c426e9f9a2603b2b2c2adedb0^\{commit}" # timeout=10??
           ??17.07.2017 10:41:47 ERROR: Build step failed with exception??
           ??17.07.2017 10:41:47 hudson.plugins.git.GitException: Command "git.exe rev-parse "0f01e15e5cce133c426e9f9a2603b2b2c2adedb0^\{commit}"" returned status code 128:??
          ??17.07.2017 10:41:47 stdout:??
           ??17.07.2017 10:41:47 stderr: fatal: Not a git repository (or any of the parent directories): .git??
          Ulli Hafner made changes -
          Summary Original: Using GitBlamer to create author and commit information for all warnings. New: GitBlamer does not work if git workspace is in subfolder
          Ulli Hafner made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Christian Häussler made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Ulli Hafner made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Fixed but Unreleased [ 10203 ]
          Ulli Hafner made changes -
          Released As New: 5.0.0-beta3
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

            drulli Ulli Hafner
            it12lsp Christian Häussler
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: