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(
	at org.eclipse.jgit.lib.BaseRepositoryBuilder.setup(
	at hudson.plugins.git.GitAPI.<init>(
	at hudson.plugins.git.GitSCM$3.invoke(
	at hudson.plugins.git.GitSCM$3.invoke(
	at hudson.FilePath.act(
	at hudson.FilePath.act(
	at hudson.plugins.git.GitSCM.gerRevisionToBuild(
	at hudson.plugins.git.GitSCM.checkout(
	at hudson.model.AbstractProject.checkout(
	at hudson.model.AbstractBuild$AbstractRunner.checkout(
	at hudson.model.AbstractBuild$
	at hudson.model.ResourceController.execute(
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: 80
Registered: January 2013
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: Sun Oct 23 08:07:05 GMT 2016

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

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