Expand description
Bindings to Jenkins JSON API
§Example
extern crate jenkins_api;
use jenkins_api::JenkinsBuilder;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let jenkins = JenkinsBuilder::new("http://localhost:8080")
.with_user("user", Some("password"))
.build()?;
let job = jenkins.get_job("job name")?;
let build = job.last_build.as_ref().unwrap().get_full_build(&jenkins)?;
println!(
"last build for job {} at {} was {:?}",
job.name, build.timestamp, build.result
);
Ok(())
}
Modules§
- action
- Types to parse the actions that triggered a
Build
- build
- Jenkins Builds
- changeset
- Types describing changes between two builds
- client
- Helpers to build advanced queries
- helpers
- helper traits and macros
- home
- Jenkins Home, describing state of the master
- job
- Jenkins Jobs
- nodes
- Jenkins Slaves Informations
- property
- Properties of an object (Build, Job, …)
- queue
- Jenkins build queue
- scm
- Source Control Management configuration
- user
- A user, not always a Jenkins user
- view
- Jenkins Views, use to group Jobs
Structs§
- Jenkins
- Client struct with the methods to query Jenkins
- Jenkins
Builder - Builder for Jenkins client