how to use jenkins remotely when it's secure

NAnogena

New Member
I'm using jenkins api xml to create a new job, see jobs, builds ...it works only when jenkins is not secureI'm using this code to create new job\[code\]PostMethod postMethod = new PostMethod("localhost:8080/createItem?name="+projectName);postMethod.setRequestHeader("Content-type","application/xml; charset=ISO-8859-1");postMethod.setRequestBody(new FileInputStream(new File("/resources/config.xml")));HttpClient client = new HttpClient();returnCode = client.executeMethod(postMethod);\[/code\]
 
Back
Top