Crate jenkins_api [−] [src]
Bindings to Jenkins JSON API
Example
extern crate jenkins_api; use jenkins_api::JenkinsBuilder; fn main() { let jenkins = JenkinsBuilder::new("http://localhost:8080") .with_user("user", Some("password")) .build() .unwrap(); let job = jenkins.get_job("job name").unwrap(); let build = job.last_build.unwrap().get_full_build(&jenkins).unwrap(); println!( "last build for job {} at {} was {:?}", job.name, build.timestamp, build.result ); }
Modules
action |
Types to parse the actions that triggered a |
changeset |
Types describing changes between two builds |
job_builder |
Helper to build a job |
Structs
Build |
A |
Home |
Index of Jenkins, with details about the master, a list of |
Jenkins |
Client struct with the methods to query Jenkins |
JenkinsBuilder |
Builder for Jenkins client |
Job |
A Jenkins |
Queue |
The Jenkins |
QueueItem |
A queued item in Jenkins, with information about the |
ShortBuild |
Short Build that is used in lists and links from other structs |
ShortJob |
Short Job that is used in lists and links from other structs |
ShortQueueItem |
Short Queue Item that is returned when building a job |
ShortUser |
Short user that is used in list and links from other structs |
ShortView |
Short View that is used in lists and links from other structs |
View |
A Jenkins |
Enums
BallColor |
Ball Color corresponding to a |
BuildStatus |
Status of a build |
Error |
Errors that can be thrown |
Mode |
Describe how Jenkins allocates jobs to agents |