All Projects → mockersf → jenkins-api.rs

mockersf / jenkins-api.rs

Licence: MIT license
Rust client for Jenkins API

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to jenkins-api.rs

Orcid Source
ORCID Open Source Project
Stars: ✭ 233 (+796.15%)
Mutual labels:  jenkins
drupalci-sonar-jenkins
DEPRECATED - Drupal CI environment with SonarQube and Jenkins for Drupal Core code analysis.
Stars: ✭ 40 (+53.85%)
Mutual labels:  jenkins
windows-container
Docker files for various Windows Container build
Stars: ✭ 30 (+15.38%)
Mutual labels:  jenkins
Jenkins Cli
Jenkins CLI allows you manage your Jenkins as an easy way
Stars: ✭ 245 (+842.31%)
Mutual labels:  jenkins
ci-testing-python
Sample Microservice App in Python for Testing using pytest, uber/doubles, tox on CI servers like Jenkins and Travis CI using Docker + Docker-Compose for test environment.
Stars: ✭ 37 (+42.31%)
Mutual labels:  jenkins
jenkins
A supercharged version of Jenkins for Docker.
Stars: ✭ 33 (+26.92%)
Mutual labels:  jenkins
Flow Web X
Simple web with Vue
Stars: ✭ 230 (+784.62%)
Mutual labels:  jenkins
mirror-proxy
Jenkins Update Center mirror proxy
Stars: ✭ 15 (-42.31%)
Mutual labels:  jenkins
playwright-ci
☁️ Set up Playwright in CI
Stars: ✭ 27 (+3.85%)
Mutual labels:  jenkins
dingtalk
DingTalk(dingding) 是钉钉机器人的 go 实现。支持 Docker、Jenkinsfile、命令行模式,module 模式,加签安全设置,支持链式语法创建消息,支持文本、链接、Markdown、ActionCard、FeedCard消息类型; DingTalk (dingding) is the go implementation of the DingTalk robot. Support Docker, Jenkinsfile, command line mode, module mode, signature security settings, chain syntax to create messages, support text, link, markd…
Stars: ✭ 187 (+619.23%)
Mutual labels:  jenkins
Jervis
Travis-like Jenkins job generation using Job DSL plugin groovy scripts. Reads .travis.yml and generates a job in Jenkins.
Stars: ✭ 248 (+853.85%)
Mutual labels:  jenkins
sdp-pipeline-framework
The Solutions Delivery Platform runtime pipeline framework
Stars: ✭ 41 (+57.69%)
Mutual labels:  jenkins
polycephaly
Groovy code to build z/OS source code files with Jenkins and Git
Stars: ✭ 14 (-46.15%)
Mutual labels:  jenkins
Build Harness
🤖Collection of Makefiles to facilitate building Golang projects, Dockerfiles, Helm charts, and more
Stars: ✭ 236 (+807.69%)
Mutual labels:  jenkins
jenny
Command line Jenkinsfile runner written in groovy. Does not need a Jenkins installation to run the Jenkinsfile.
Stars: ✭ 90 (+246.15%)
Mutual labels:  jenkins
Devops Bash Tools
550+ DevOps Bash Scripts - AWS, GCP, Kubernetes, Kafka, Docker, APIs, Hadoop, SQL, PostgreSQL, MySQL, Hive, Impala, Travis CI, Jenkins, Concourse, GitHub, GitLab, BitBucket, Azure DevOps, TeamCity, Spotify, MP3, LDAP, Code/Build Linting, pkg mgmt for Linux, Mac, Python, Perl, Ruby, NodeJS, Golang, Advanced dotfiles: .bashrc, .vimrc, .gitconfig, .screenrc, .tmux.conf, .psqlrc ...
Stars: ✭ 226 (+769.23%)
Mutual labels:  jenkins
jenkins kube brains
Example scripts to run Kubernetes on your private VMs. This is to support of Loren and my KubeCon 2018 talk "Migrating Jenkins to Kubernetes broke our brains." https://sched.co/GrSh
Stars: ✭ 34 (+30.77%)
Mutual labels:  jenkins
dark-theme-plugin
Jenkins Dark Theme
Stars: ✭ 64 (+146.15%)
Mutual labels:  jenkins
masterclass-codeexamples
Code examples used in Get into DevOps: The Masterclass
Stars: ✭ 35 (+34.62%)
Mutual labels:  jenkins
django-angular2-fullstack-devops
All-in-one django/angular2 seed with cli interface for multi-environment devops on aws using ansible/packer/terraform
Stars: ✭ 54 (+107.69%)
Mutual labels:  jenkins

jenkins-api.rs License: MIT Build Status Coverage Status Realease Doc Crate

Bindings to Jenkins JSON API

The API docs for the master branch are published here.

Example

use jenkins_api::JenkinsBuilder;
use jenkins_api::build::BuildStatus;
use jenkins_api::job::BuildableJob;

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 to_build = if let Some(short_build) = job.last_build.clone() {
        let build = short_build.get_full_build(&jenkins).unwrap();
        println!(
            "last build for job {} at {} was {:?}",
            job.name, build.timestamp, build.result
        );
        if let Some(result) = build.result {
            result != BuildStatus::Success
        } else {
            true
        }
    } else {
        println!("job {} was never built", job.name);
        true
    };

    if to_build {
        println!("triggering a new build");
        job.as_variant::<jenkins_api::job::FreeStyleProject>().unwrap()
            .build(&jenkins).unwrap();
    }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].