Skip to main content

[Hudson-Dev] urgent, need help with git plugin defect 9005

  • From: Henrik Lynggaard Hansen <henrik@...>
  • To: Hudson Dev <dev@...>
  • Subject: [Hudson-Dev] urgent, need help with git plugin defect 9005
  • Date: Tue, 27 Sep 2011 10:45:04 +0200

Hi

We are having big problems with a bug in the git plugin. Basically the
job will stop working until we manually clean all affected workspaces,
which is a big disruption to our workflow and daily work...

I could use some help in resolving this, or better yet someone to fix
it. The bug in question is:
http://issues.hudson-ci.org/browse/HUDSON-9005

for reference: hudson 2.1.1, git plugin 2.1.0_1 (both the newest)

The problem is that the job suddenly start to throw the following
exception instead of checking out

"FATAL: One of setGitDir or setWorkTree must be called.
java.lang.IllegalArgumentException: One of setGitDir or setWorkTree
must be called.
        at 
org.eclipse.jgit.lib.BaseRepositoryBuilder.requireGitDirOrWorkTree(BaseRepositoryBuilder.java:538)
        at 
org.eclipse.jgit.lib.BaseRepositoryBuilder.setup(BaseRepositoryBuilder.java:506)
        at 
org.eclipse.jgit.storage.file.FileRepositoryBuilder.build(FileRepositoryBuilder.java:89)
        at hudson.plugins.git.GitAPI.<init>(GitAPI.java:92)
        at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:790)
        at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:782)
        at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1960)
        .......
"

The git section of a config xml looks like this:
"<scm class="hudson.plugins.git.GitSCM">
<configVersion>1</configVersion>
<remoteRepositories>
<RemoteConfig>
<name>origin</name>
<uris>
<org.eclipse.jgit.transport.URIish>
<path>adlt</path>
<user>git</user>
<port>-1</port>
<host>forge.example.com</host>
</org.eclipse.jgit.transport.URIish>
</uris>
<pushURIs/>
<fetch>
<org.eclipse.jgit.transport.RefSpec>
<force>true</force>
<wildcard>true</wildcard>
<srcName>refs/heads/*</srcName>
<dstName>refs/remotes/origin/*</dstName>
</org.eclipse.jgit.transport.RefSpec>
</fetch>
<push/>
<uploadpack>git-upload-pack</uploadpack>
<receivepack>git-receive-pack</receivepack>
<tagopt>AUTO_FOLLOW</tagopt>
<mirror>false</mirror>
<timeout>0</timeout>
</RemoteConfig>
</remoteRepositories>
<branches>
<hudson.plugins.git.BranchSpec>
<name>master</name>
</hudson.plugins.git.BranchSpec>
</branches>
<mergeOptions/>
<recursiveSubmodules>false</recursiveSubmodules>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<authorOrCommitter>false</authorOrCommitter>
<clean>false</clean>
<wipeOutWorkspace>false</wipeOutWorkspace>
<pruneBranches>false</pruneBranches>
<buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
<gitTool>Default</gitTool>
<submoduleCfg class="list"/>
<relativeTargetDir></relativeTargetDir>
<excludedRegions></excludedRegions>
<excludedUsers></excludedUsers>
<gitConfigName></gitConfigName>
<gitConfigEmail></gitConfigEmail>
<skipTag>false</skipTag>
</scm>"

Best regards
Henrik


[Hudson-Dev] urgent, need help with git plugin defect 9005

Henrik Lynggaard Hansen 09/27/2011
 
 
Close
loading
Please Confirm
Close