Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » JAVA source code and Hudson(How to move eclipse source code or project/workspace to hudson server)
icon1.gif  JAVA source code and Hudson [message #1066592] Wed, 03 July 2013 10:47 Go to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
Hello there, hope you are doing well. Recently I came to know about CI server, I found Hudson is one the CI servers out.

Now, the thing is that I'm relatively new to this CI server, I have gained some knowledge about CI servers, why they are used etc, but I am having some issues.

I am supervising a team of 5-8 developers working on different modules of the same project. I have installed/deployed Hudson (by java -jar hudson.war command), also have installed the Hudson plugin for Eclipse, as we are using Eclipse for development. Now the question is how to add my eclipse project/workspace to Hudson, lets say that I have two separate programs/workspaces running on two different computers "1 HELLO WORLD java program" and "2nd is simple addition java program" in Eclipse, I want them to move to Hudson server ? How to do it ? I have created a "free style software job" it builds successfully but its of no use, I found no place to add my source code.

Sorry for asking such basic questions but I am running out of time. Thanks

ps: I have looked to ANT and Maven to but I am unable to understand it.
Re: JAVA source code and Hudson [message #1066616 is a reply to message #1066592] Wed, 03 July 2013 13:08 Go to previous messageGo to next message
Bob Foster is currently offline Bob Foster
Messages: 74
Registered: January 2013
Member
The usual answer is, use source control (like Git) and have your Hudson jobs run when anyone checks in. Then the Hudson job checks it out to build it.
Re: JAVA source code and Hudson [message #1066662 is a reply to message #1066616] Wed, 03 July 2013 15:27 Go to previous messageGo to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
Thank you Bob very much for guiding me, let me try this GIT and see what happens !
Re: JAVA source code and Hudson [message #1066665 is a reply to message #1066616] Wed, 03 July 2013 15:35 Go to previous messageGo to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
one more thing is that I tried configuring CVS as it seemed simple (no need of URL) but I got confused what paths to mention in following:

1 CVS
2 Module
3 Branch Directory
4 Local directory

I have made a sample JAVA HelloWorld program.
Re: JAVA source code and Hudson [message #1066698 is a reply to message #1066665] Wed, 03 July 2013 20:04 Go to previous messageGo to next message
Bob Foster is currently offline Bob Foster
Messages: 74
Registered: January 2013
Member
CVS may seem simple, but it isn't. Give GIT a shot. Look at the many tutorials on the web. Also, I don't use Eclipse these days much, but I'm sure it has built-in GIT support. Here's a link: http://www.vogella.com/articles/EGit/article.html

Re: JAVA source code and Hudson [message #1066718 is a reply to message #1066698] Thu, 04 July 2013 04:48 Go to previous messageGo to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
once again thank you BOB Smile !
working on GIT now, lets hope ... !
Re: JAVA source code and Hudson [message #1066725 is a reply to message #1066718] Thu, 04 July 2013 06:18 Go to previous messageGo to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
so I have successfully installed GIT plugin in Eclipse, also have made a repository on GIT HUB and have pushed/uploaded my HELLO WORLD program. I have given my SSH URL to hudson server, but its not building up, error comes in. . . I have tried to understand the console output of HUDSON too...

Thanks in advance

(wanted to provide links of screenshots of my HUDSON and ECLIPSE but this forum didn't allow me)
Re: JAVA source code and Hudson [message #1066732 is a reply to message #1066725] Thu, 04 July 2013 07:09 Go to previous messageGo to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
help me, I m pretty close to the end !

http://s9.postimg.org/c9jazybdr/111.png

http://postimg.org/image/gwrqpwpb7/
Re: JAVA source code and Hudson [message #1066733 is a reply to message #1066732] Thu, 04 July 2013 07:10 Go to previous messageGo to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
http://s21.postimg.org/to5wwez3b/222.png
Re: JAVA source code and Hudson [message #1066781 is a reply to message #1066733] Thu, 04 July 2013 10:43 Go to previous messageGo to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
why is this error coming Sad

ERROR: Problem fetching from my_first_rep / my_first_rep - could be unavailable. Continuing anyway

why !!!
Re: JAVA source code and Hudson [message #1066899 is a reply to message #1066781] Fri, 05 July 2013 05:56 Go to previous messageGo to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
have changed my GIT url to SSH HTTP HTTPS but no success, i m pretty sure that problem is due to this FETCHING my source code/project from GIT .... !

have configured my proxy settings, as I m behind a proxy server, tested it and its working... then what is it ?
Re: JAVA source code and Hudson [message #1066902 is a reply to message #1066899] Fri, 05 July 2013 06:18 Go to previous messageGo to next message
k z is currently offline k z
Messages: 71
Registered: October 2012
Member
When using HTTPS and your GIT repo is protected you might encounter some issues on clean checkout. However 2nd and next attempts should be fine. You can find more info here http://www.eclipse.org/forums/index.php/t/487348/
Re: JAVA source code and Hudson [message #1066934 is a reply to message #1066902] Fri, 05 July 2013 08:15 Go to previous messageGo to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
thankyou for replying back. In hudson configuration I have set SCM checkout retry count to be 5, but the problem is still there !
Re: JAVA source code and Hudson [message #1067133 is a reply to message #1066934] Sat, 06 July 2013 08:02 Go to previous messageGo to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
Grrr ! the problem is still there !

can't fetch from online repository error !!!

Help please !
Re: JAVA source code and Hudson [message #1067676 is a reply to message #1067133] Wed, 10 July 2013 03:05 Go to previous messageGo to next message
Winston Prakash is currently offline Winston Prakash
Messages: 426
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Did you install git and specify the binary in your Hudson Manage -> Configure System -> Git

Read this in Hudson book

http://www.eclipse.org/hudson/the-hudson-book/book-hudson.chunked/ch09.html#section-scm-git


Winston Prakash
Eclipse Hudson team
Re: JAVA source code and Hudson [message #1068086 is a reply to message #1067676] Fri, 12 July 2013 04:10 Go to previous messageGo to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
Yes Sir have done that too, still no success, have uploaded a simple HELLO WORLD program to GIT from eclipse, and given the repository path in Hudson . . . Confused
Re: JAVA source code and Hudson [message #1068129 is a reply to message #1066592] Fri, 12 July 2013 10:35 Go to previous messageGo to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
re installaed and re configured hudson, still there is error. HELP !!!

http://s9.postimg.org/78e609z33/111.png
Re: JAVA source code and Hudson [message #1069523 is a reply to message #1066592] Tue, 16 July 2013 03:47 Go to previous messageGo to next message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
Please help me, I m stuck Sad Sad Sad
Re: JAVA source code and Hudson [message #1069526 is a reply to message #1069523] Tue, 16 July 2013 03:52 Go to previous messageGo to next message
Winston Prakash is currently offline Winston Prakash
Messages: 426
Registered: August 2011
Location: Fremont, CA USA
Senior Member
write to me directly. winston DOT prakash AT gmail DOT com. let us discuss offline.

Winston Prakash
Eclipse Hudson team
Re: JAVA source code and Hudson [message #1070492 is a reply to message #1066592] Thu, 18 July 2013 04:57 Go to previous message
froozen martial is currently offline froozen martial
Messages: 18
Registered: July 2013
Junior Member
mods please close the thread problem is solved.

The problem was arising because I was behind a proxy server, though I had given proxy settings in HUDSON, but haven't in GIT. So the solution was to configure GIT for proxy.


Thanks to Winston Prakash
Previous Topic:SVN: Disable "Override global credentials" question
Next Topic:Performance problems
Goto Forum:
  


Current Time: Thu Oct 23 02:36:20 GMT 2014

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

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