Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Hudson Remote APIS(Creating jobs,building jobs using hudson remote apis)
Hudson Remote APIS [message #1031689] Tue, 02 April 2013 04:32
hariprasadh balasubramanian is currently offline hariprasadh balasubramanianFriend
Messages: 18
Registered: April 2013
Junior Member
for remote api iam using like this.is it correct?These are two ways i tried out:1.To create jobs:
curl -k --request POST --header "Content-type: text/xml" --data @.hudson/config.xml  http:/xxx:8080/hudson-3.0.0/createItem?name=yyyy

 import urllib2
 f=open("/root/.hudson/config.xml","r")
 data=f.read()
 url="http:/xxx:8080/hudson-3.0.0/createItem?name=yyyy"
 headers={'Content-type': 'text/xml'} req = urllib2.Request(url, 
 data, headers) res = urllib2.urlopen(req)

Iam using config.xml in the .hudson/config.xml not the config.xml present in the jobs folder.Please correct me if iam wrong.
If iam post like this iam getting 500 error.
Please suggest me possible code?
2.Build trigger remotely option is not available under build trigger section.what is the neccessary plugins i need to be added here.
Please help me out in resolving this.

[Updated on: Thu, 23 May 2013 06:29]

Report message to a moderator

Previous Topic:Building the Eclipse source code cloned from git
Next Topic:Using JPanels
Goto Forum:
  


Current Time: Tue Apr 16 14:18:18 GMT 2024

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

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

Back to the top