1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#![deny(
    warnings, missing_debug_implementations, missing_copy_implementations, trivial_casts,
    trivial_numeric_casts, unsafe_code, unstable_features, unused_import_braces,
    unused_qualifications, missing_docs, unused_extern_crates, unused_qualifications, unused_results
)]

//! Bindings to [Jenkins JSON API](https://wiki.jenkins.io/display/JENKINS/Remote+access+API)
//!
//! # Example
//!
//! ```rust
//! extern crate failure;
//!
//! extern crate jenkins_api;
//!
//! use jenkins_api::JenkinsBuilder;
//!
//! fn main() -> Result<(), failure::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(())
//! }
//! ```
//!

extern crate hyper;
extern crate reqwest;

#[macro_use]
extern crate serde_derive;

extern crate serde;
extern crate serde_json;
extern crate serde_urlencoded;

extern crate urlencoding;

#[macro_use]
extern crate failure;
extern crate regex;

#[macro_use]
extern crate log;

mod client_internals;
pub use client_internals::{Jenkins, JenkinsBuilder};
pub mod client;

#[macro_use]
pub mod helpers;

pub mod action;
pub mod build;
pub mod changeset;
pub mod home;
pub mod job;
pub mod nodes;
pub mod property;
pub mod queue;
pub mod scm;
pub mod user;
pub mod view;