-
Bug
-
Resolution: Not A Defect
-
Major
-
Jenkins-Git plugin, Windows Server 2003 SP2, IIS v6.0
I have configured Jenkins to generate builds for the GIT repository in Windows Server. My Jenkins job is configured to Poll the repository continuously and trigger build if any change is found in the repository. The issue is Jenkins job triggers automatically even there is no change in the repository. When I checked the polling log it printed the following message
Started on Oct 27, 2011 9:45:54 AM
Using strategy: Default
[poll] Last Build : #289
[poll] Last Built Revision: Revision 7fd9fb8139dd0c449a0382b505c7857c8634f33f (origin/Prod_dev)
Workspace has a .git repository, but it appears to be corrupt.
No Git repository yet, an initial checkout is required
Done. Took 11 sec
Changes found
- is duplicated by
-
JENKINS-11527 Jenkins claims repository is corrupted even though it is fine
-
- Resolved
-
-
JENKINS-11528 Jenkins claims repository is corrupted even though it is fine
-
- Resolved
-
-
JENKINS-11529 Git plugin claims repository is corrupted even though it is fine
-
- Resolved
-
-
JENKINS-11530 Git plugin claims repository is corrupted even though it is fine
-
- Resolved
-
-
JENKINS-11531 Git plugin claims repository is corrupted even though it is fine
-
- Resolved
-
-
JENKINS-11537 Jenkins job triggering automatically even though there is no change in the repository claiming the repository is corrupted.
-
- Resolved
-
-
JENKINS-11532 Git plugin claims repository is corrupted
-
- Closed
-
I have the same problem.
The error message originates by GitAPI.java:hasGitRepo():(line 119), it is the exception handler (which sadly doesn't spit out more information). hasGitRepo calls validateRevision which does a launchCommand and parses the output using firstLine - which throws an exception if git dumped multiple lines. This is exactly the case on windows: the output of git rev-parse --verify <my-rev> is <my-ref> newline emptyline. Could we please (at least on Windows) improve that firstLine method to exclude empty lines?
Thanks,
Hannes