Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] Hudson build job cannot fetch from Git repository

If Hudson is expecting a URI you may need to use:

file:///gitroot/emf....

Otherwise, simply use the git protocol.

git://git.eclipse.org/gitroot/emf....

I apologize -- I didn't realize some of you were using the git.eclipse.org/c/ URIs to run your builds.

Denis





On 10/26/2011 10:17 AM, Cédric Brun wrote:
We have the same issue for compare.

I switched from a git://git.eclipse.org/gitroot/emfcompare/org.eclipse.emf.compare.git  to the following URI : /gitroot/emfcompare/org.eclipse.emf.compare.git


And it's still failling with :

FATAL: cannot assign instance of hudson.EnvVars to field hudson.plugins.git.GitSCM$3.val$environment of type hudson.EnvVars in instance of hudson.plugins.git.GitSCM$3
java.lang.ClassCastException: cannot assign instance of hudson.EnvVars to field hudson.plugins.git.GitSCM$3.val$environment of type hudson.EnvVars in instance of hudson.plugins.git.GitSCM$3
	at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2032)
	at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1212)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1953)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)




Le 26/10/2011 15:53, Wenz, Michael a écrit :

Denis,

thanks for the quick response. . I switched to /gitroot, this solved the issue.

Michael

From: cross-project-issues-dev-bounces@xxxxxxxxxxx [mailto:cross-project-issues-dev-bounces@xxxxxxxxxxx] On Behalf Of Denis Roy
Sent: Mittwoch, 26. Oktober 2011 15:37
To: Cross project issues
Subject: Re: [cross-project-issues-dev] Hudson build job cannot fetch from Git repository

 

Change your repository.

Best, fastest, most reliable: Use the filesystem
/gitroot/gmp/org.eclipse.gmp.graphiti.git

Or, use git://git.eclipse.org/gitroot/gmp/org.eclipse.gmp.graphiti.git

If you absolutely must use http:
http://git.eclipse.org/gitroot/gmp/org.eclipse.gmp.graphiti.git

The /c/ URL you are using is the web-browsable Git repo (like ViewCVS).  It does not use the http smart server, and increases our bandwidth and load for no reason (and that is why we've disabled it).

Denis


On 10/26/2011 09:11 AM, Wenz, Michael wrote:

Hi,

is anybody else getting errors from Hudson build jobs while fetching stuff from Git? I get errors like this:

Checkout:workspace / /opt/users/hudsonbuild/.hudson/jobs/gmp-graphiti-nightly/workspace - hudson.remoting.LocalChannel@b09851a
Using strategy: Default
Last Built Revision: Revision bd2a9a6a277dcdd11b9d6e5de6c4ad66136777a8 (origin/master)
Checkout:org.eclipse.gmp.graphiti / /opt/users/hudsonbuild/.hudson/jobs/gmp-graphiti-nightly/workspace/org.eclipse.gmp/org.eclipse.gmp.graphiti - hudson.remoting.LocalChannel@b09851a
Fetching changes from the remote Git repository
Fetching upstream changes from http://git.eclipse.org/c/gmp/org.eclipse.gmp.graphiti.git/
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
ERROR:  (Underlying report) : Error performing command: git fetch -t http://git.eclipse.org/c/gmp/org.eclipse.gmp.graphiti.git/ +refs/heads/*:refs/remotes/origin/*
Command "git fetch -t http://git.eclipse.org/c/gmp/org.eclipse.gmp.graphiti.git/ +refs/heads/*:refs/remotes/origin/*" returned status code 128: error: The requested URL returned error: 403 (curl_result = 22, http_code = 403, sha1 = ce4a132ea0547dd1303994883fdcffaa02824cd0)
error: Unable to find ce4a132ea0547dd1303994883fdcffaa02824cd0 under http://git.eclipse.org/c/gmp/org.eclipse.gmp.graphiti.git
Cannot obtain needed object ce4a132ea0547dd1303994883fdcffaa02824cd0
error: Fetch failed.
 
ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
        at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:796)
        at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:754)
        at hudson.FilePath.act(FilePath.java:758)
        at hudson.FilePath.act(FilePath.java:740)
        at hudson.plugins.git.GitSCM.gerRevisionToBuild(GitSCM.java:754)
        at hudson.plugins.git.GitSCM.checkout(GitSCM.java:540)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1217)
        at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:508)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:424)
        at hudson.model.Run.run(Run.java:1367)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:145)

The repository is reachable both from Eclipse IDE and Web Browser.

Michael




Back to the top