Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » Deleting Hudson Workspace causes this error before build(Using Git)
icon4.gif  Deleting Hudson Workspace causes this error before build [message #1029449] Fri, 29 March 2013 18:01 Go to next message
Michael Angelo is currently offline Michael AngeloFriend
Messages: 6
Registered: March 2013
Junior Member
I have the Hudson setting selected to wipe out the workspace before building. I get the following console output when attempting to build:


Console Output

View as plain text
Started by user mangelo
Checkout:ontrac-domain / d:\hudson-workspace\ontrac-domain - hudson.remoting.LocalChannel@12d8dac
Using strategy: Default
Last Built Revision: Revision 5d880dba3bdcf9f1a3bf3ca32000c3a658a93360 (origin/master)
Checkout:ontrac-domain / d:\hudson-workspace\ontrac-domain - hudson.remoting.LocalChannel@12d8dac
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:897)
	at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:889)
	at hudson.FilePath.act(FilePath.java:791)
	at hudson.FilePath.act(FilePath.java:773)
	at hudson.plugins.git.GitSCM.gerRevisionToBuild(GitSCM.java:889)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:668)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1515)
	at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:521)
	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:428)
	at hudson.model.Run.run(Run.java:1390)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)
	at hudson.model.ResourceController.execute(ResourceController.java:81)
	at hudson.model.Executor.run(Executor.java:137)
Re: Deleting Hudson Workspace causes this error before build [message #1029529 is a reply to message #1029449] Fri, 29 March 2013 20:42 Go to previous message
Bob Foster is currently offline Bob FosterFriend
Messages: 74
Registered: January 2013
Member
I don't see this. What version of Hudson and git plugin are you using? How do you have Git configured?
Previous Topic:Hudson jobs can not send mail after upgrading to version 3.0.0 and JDK 7.0
Next Topic:syntax error near unexpected token....
Goto Forum:
  


Current Time: Wed Nov 26 20:48:09 GMT 2014

Powered by FUDForum. Page generated in 0.02214 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software