Struct jenkins_api::Jenkins[][src]

pub struct Jenkins { /* fields omitted */ }

Client struct with the methods to query Jenkins

Methods

impl Jenkins
[src]

Get a Path from Jenkins, specifying the depth or tree parameters

Example

#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
struct LastBuild {
    number: u32,
    duration: u32,
    result: String,
}
#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
struct LastBuildOfJob {
    display_name: String,
    last_build: LastBuild,
}

let _: LastBuildOfJob = jenkins.get_object_as(
    jenkins_api::client::Path::Job {
        name: "job name",
        configuration: None,
    },
    jenkins_api::client::TreeBuilder::new()
        .with_field("displayName")
        .with_field(
            jenkins_api::client::TreeBuilder::object("lastBuild")
                .with_subfield("number")
                .with_subfield("duration")
                .with_subfield("result"),
        )
        .build(),
)?;

impl Jenkins
[src]

Get a build from a job_name and build_number

impl Jenkins
[src]

Get Jenkins Home

impl Jenkins
[src]

Get a Job from it's job_name

Build a Job from it's job_name

Create a JobBuilder to setup a build of a Job from it's job_name

Poll SCM of a Job from it's job_name

impl Jenkins
[src]

Get a ComputerSet

Get a Computer

Get the master Computer

impl Jenkins
[src]

Get the Jenkins items queue

Get a queue item from it's ID

impl Jenkins
[src]

Get a View

Add the job job_name to the view view_name

Remove the job job_name from the view view_name

Trait Implementations

impl Debug for Jenkins
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Jenkins

impl Sync for Jenkins