This API is (for now) rather simple. Set the Jenkins URL, in this line
jenkinsUrlBase = "http://[jenkins URL]:8080";
Then you can:
Get Project Information:
getProject([project name])
Get Jobs list:
getJobs()
Get Views:
getViews()
Get Job Description:
getJobDescription([job object])
Get Job Data:
getJobData([job name])
Delete Job:
DeleteJob([job name])
Get Build Status:
getBuildStatus([job name])
Execute a Build:
ExecuteBuild([job name])
Execute build WITH parameters:
(Actually, execute a build, uploading a file and a couple of parameters... browse the code)
ExecuteBuildwithParameters([job name], [file], [params as a namevaluecollection])
Upload a File to a Jenkins Job:
UploadFileEx([job name], [file], [url], [name of the file on the form], [content type], [query string], [cookies])
Copy a Job:
Just duplicate Jobs.
copyJob([job from], [job to])
Update a Parameter in a Job:
updateParameterInJob([job name], [parameter name], [new value])
This is all very preliminary. But (hopefully) will get improved over time.