Menu

Home

JuanCarniglia

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.

Project Members:


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.