Test connection fail in RTC 4.0
We have RTC4.0 and wanted to experiment with Hudson. So, following the steps in this url:
https://jazz.net/library/article/840
I have started Hudson on my local machine (localhost:8080), but the Eclipse client doesn't seem to detect it. When clicking the Test connection button it just says:
Connection test requested.
Connecting to: http://isd-pbfycb3:8080/
Exception: java.net.UnknownHostException: isd-pbfycb3 Test connection FAILED!
I have tried: localhost, my ip address, my computer name, but it doesn't seem to detect the Hudson server.
In RTC 3.0 I was able to do something similar, but with 4.0, Hudson is now one of the choices. Am I missing something here?
https://jazz.net/library/article/840
I have started Hudson on my local machine (localhost:8080), but the Eclipse client doesn't seem to detect it. When clicking the Test connection button it just says:
Connection test requested.
Connecting to: http://isd-pbfycb3:8080/
Exception: java.net.UnknownHostException: isd-pbfycb3 Test connection FAILED!
I have tried: localhost, my ip address, my computer name, but it doesn't seem to detect the Hudson server.
In RTC 3.0 I was able to do something similar, but with 4.0, Hudson is now one of the choices. Am I missing something here?
4 answers
Can you open the page with a browser? Have you tried to add the host to the etc/hosts (if you don't have DNS)? Are you sure about the port Hudson uses? Is Hudson running and working?
Oh Jesse, this is too bad.
I wish I'd seen this thread earlier. I have opened this defect, Clarify that the Hudson/Jenkins build engine connection test runs on the RTC server, not the client machine (300237).
In short, the problem is most likely due to the fact that the connection test is run from the RTC server, and so it must be able to reach the hudson/jenkins server URL. If the RTC server is outside a firewall it will not reach the hudson/jenkins server. Also if the h/j server is installed on your local machine and you enter a URL of http://localhost:8080 it will resolve to the RTC server machine, not your local client machine.
I hope that is the problem you saw, and I'm sorry we didn't get you the correct information earlier.
Scott
I wish I'd seen this thread earlier. I have opened this defect, Clarify that the Hudson/Jenkins build engine connection test runs on the RTC server, not the client machine (300237).
In short, the problem is most likely due to the fact that the connection test is run from the RTC server, and so it must be able to reach the hudson/jenkins server URL. If the RTC server is outside a firewall it will not reach the hudson/jenkins server. Also if the h/j server is installed on your local machine and you enter a URL of http://localhost:8080 it will resolve to the RTC server machine, not your local client machine.
I hope that is the problem you saw, and I'm sorry we didn't get you the correct information earlier.
Scott
Comments
Eitan Shomrai
Sep 17 '13, 3:44 p.m.I've just installed Jenkins ver. 1.475 and the engine CAN connect and I get:
Connection test requested.
Connecting to: http://<host-name>:8080
Found header: X-Jenkins - 1.475
Found header: X-Hudson - 1.395
Test connection SUCCESSFUL!
but I cannot save the Hudson/Jenkins tab in the build definition as the "Get jobs" button fails and the Job Section is empty.
Any idea?
Jesse Timbang
Jul 27 '12, 10:50 a.m.Well, we've taken Hudson out of the equation and we are now looking at the Jazz build Engine to do our builds for us. So far so good.
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Sep 17 '13, 3:45 p.m.I would assume you have to set up a job - no idea how to do that. Have you looked into the RTC and Jenkins help?
Eitan Shomrai
Jul 28 '12, 3:30 p.m.I've put the solution in the discussion section of the original instruction in https://jazz.net/library/article/840/. The issue was caused by trying to set "Jazz Source Control" in the Build definition and not as it said to push Finish (and not going to pre/post build screens). By the way I've installed the Jenkins plugin for RTC and it works great with V4!
Alex Rodriguez
Sep 17 '13, 3:44 p.m.I am getting the same issue or similar described here. I am setting a jenkins/RTC CI in my localhost, I am able to see the jenkins GUI in the browser (firefox) but when a create the build engine and test the connection I am getting the following error: