Skip to main content



      Home
Home » Archived » 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 06:47 Go to next message
Eclipse UserFriend
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 09:08 Go to previous messageGo to next message
Eclipse UserFriend
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 11:27 Go to previous messageGo to next message
Eclipse UserFriend
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 11:35 Go to previous messageGo to next message
Eclipse UserFriend
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 16:04 Go to previous messageGo to next message
Eclipse UserFriend
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 00:48 Go to previous messageGo to next message
Eclipse UserFriend
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 02:18 Go to previous messageGo to next message
Eclipse UserFriend
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 03:09 Go to previous messageGo to next message
Eclipse UserFriend
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 03:10 Go to previous messageGo to next message
Eclipse UserFriend
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 06:43 Go to previous messageGo to next message
Eclipse UserFriend
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 01:56 Go to previous messageGo to next message
Eclipse UserFriend
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 02:18 Go to previous messageGo to next message
Eclipse UserFriend
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 04:15 Go to previous messageGo to next message
Eclipse UserFriend
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 04:02 Go to previous messageGo to next message
Eclipse UserFriend
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] Tue, 09 July 2013 23:05 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: JAVA source code and Hudson [message #1068086 is a reply to message #1067676] Fri, 12 July 2013 00:10 Go to previous messageGo to next message
Eclipse UserFriend
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 06:35 Go to previous messageGo to next message
Eclipse UserFriend
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] Mon, 15 July 2013 23:47 Go to previous messageGo to next message
Eclipse UserFriend
Please help me, I m stuck Sad Sad Sad
Re: JAVA source code and Hudson [message #1069526 is a reply to message #1069523] Mon, 15 July 2013 23:52 Go to previous messageGo to next message
Eclipse UserFriend
write to me directly. winston DOT prakash AT gmail DOT com. let us discuss offline.
Re: JAVA source code and Hudson [message #1070492 is a reply to message #1066592] Thu, 18 July 2013 00:57 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 12:21:08 EDT 2025

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

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

Back to the top