-
Bug
-
Resolution: Unresolved
-
Minor
-
None
jenkins-client - 0.3.8
Jenkins Server - 2.164.2
Code Snippet:
jenkinsHttpClient=new JenkinsHttpClient(new URI("http://localhost:8080/jenkins"), "storedb",
jenkinsHttpClient=new JenkinsHttpClient(new URI("http://10.207.140.201:8080/jenkins"), "username", "password"); System.out.println(jenkinsHttpClient.getJenkinsVersion());
jenkins = new JenkinsServer(jenkinsHttpClient);
Map<String, Job> jobs = jenkins.getJobs();
error faced :
org.apache.http.client.HttpResponseException: Not Foundorg.apache.http.client.HttpResponseException: Not Found at com.offbytwo.jenkins.client.validator.HttpResponseValidator.validateResponse(HttpResponseValidator.java:11) at com.offbytwo.jenkins.client.JenkinsHttpClient.get(JenkinsHttpClient.java:152) at com.offbytwo.jenkins.JenkinsServer.getJobs(JenkinsServer.java:169) at com.offbytwo.jenkins.JenkinsServer.getJobs(JenkinsServer.java:127) at com.kohls.main.JenkinsJobXMLFileStatus.main(JenkinsJobXMLFileStatus.java:25)