|
||||||||
|
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

I just looked into this and here is what I found:
If you use "git clone" it works fine. However, if I follow the exact sequence that Jenkins does, it fails. This is because of two things working against us:
1) Jenkins is running "git fetch", but Jenkins is not configuring HEAD to point to a real branch at this point of the execution.
2) Jenkins is using a remote name other than "origin".
The implementation of "git submodule init" does this with relative URL:
1) If the URL begins with "./" or "../" it will "resolve relative" as defined in the documentation.
2) To resolve relative, it must determine which "remote" to resolve relative to.
2a) If HEAD is set up, then it looks for the remote tracking branch that HEAD is configured against and uses that remote.
2b) If HEAD is not set up, it uses "origin".
So, for most cases it "just works", but in Jenkins, it fails.
This is particularly problematic for us as we use both http:// and ssh:// as per designer requirements, and having a submodule that is absolute means that half the designers must use both mechanisms for authentication and we have to choose which ones will "lose". If we could do relative, then it would just use whatever the designer was already using. This works fine from the development environment because the above algorithm generally works. But this configuration fails under Jenkins which makes it a serious problem as if we use the configuration that works for designers, we lose continuous integration builds, or if we use the configuration that works for Jenkins, we upset half the designers.
Not a great state to be in...![]()