Mark Waite edited a comment on Bug JENKINS-22039

I believe the failure case you're detecting is for the case when a "fast remote poll" is used with the command line git implementation. The git-client-plugin needs to create a temporary local git repository for its operations, but makes the mistake of not generating a completely unique directory name.

I assume JGit works reliably because it creates the temporary directory with a unique name each time.

The problem will likely only be visible on Windows due to the more restrictive file locking rules of the Windows file system.

The problem is not detected by any of the unit tests in the git-client-plugin because it is in an authentication area and there are currently no authentication tests for the git-client-plugin. I hope to learn enough about authentication in the git-client-plugin to create many tests for it, but it has been very slow progress.

If you want to test my theory, you should be able to cause the problem to be consistently repeatable if you create a plain file named ".git" in your system temporary directory. Something like

C:\> echo "hello world" > %TEMP%\.git

Once that plain file is created, I believe the attempt to call "git init" for remote polling using command line git will fail consistently.


I confirmed that a similar failure mode can be created on Unix variants by creating a plain file named /tmp/.git to which the Jenkins process user cannot write:

$ sudo touch /tmp/.git
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to