Hi,
On 02/11/16 18:43, Narreddi Anil Kumar Reddy wrote:
Hi,
I've the jenkins-client code downloaded from GIT and when I try to
establish connection to Jenkins server suing the below URL,it's failing
with exception and not able to connect to jenkins.Does any body have any
suggestions.
JenkinsServer jenkinsClient = new
JenkinsServer(new URI("http://10.8.2.174:8082/login?from=%2Fje"),
"admin", "admin");
System.out.println("Connected to Jenkins
server::::"+jenkinsClient.getVersion());
First why not using the offical release from Maven Central rep (release
0.3.6) furthermore you shouldn't use the url with the login part...only
simply:
JenkinsServer jenkinsClient = new JenkinsServer ( new
URI("http://10.8.2.174:8082/"), "admin", "admin");
...
Kind regards
Karl Heinz Marbaise
--
You received this message because you are subscribed to the Google Groups "Jenkins
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/541ebcf7-46bf-605c-a3c5-68a5e963bb39%40gmx.de.
For more options, visit https://groups.google.com/d/optout.