-
Bug
-
Resolution: Fixed
-
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
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?? |
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?? |
Summary | Original: Using GitBlamer to create author and commit information for all warnings. | New: GitBlamer does not work if git workspace is in subfolder |
I get the same fatal error on macOS Sierra 10.12.5.