Crate jenkins_api_redux
source ·Expand description
Bindings to Jenkins JSON API
Example
extern crate jenkins_api;
use jenkins_api_redux::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
- Types to parse the actions that triggered a
Build
- Jenkins Builds
- Types describing changes between two builds
- Helpers to build advanced queries
- helper traits and macros
- Jenkins Home, describing state of the master
- Jenkins Jobs
- Jenkins Slaves Informations
- Properties of an object (Build, Job, …)
- Jenkins build queue
- Source Control Management configuration
- A user, not always a Jenkins user
- Jenkins Views, use to group Jobs
Structs
- Client struct with the methods to query Jenkins
- Builder for Jenkins client