Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryankwilliams/scrub-jenkins-jobs

A simple command to clean Jenkins jobs
https://github.com/ryankwilliams/scrub-jenkins-jobs

Last synced: 10 days ago
JSON representation

A simple command to clean Jenkins jobs

Awesome Lists containing this project

README

        

# Scrub Jenkins Jobs

[![PR-Verification](https://github.com/ryankwilliams/scrub-jenkins-jobs/actions/workflows/pr_verification.yml/badge.svg)](https://github.com/ryankwilliams/scrub-jenkins-jobs/actions/workflows/pr_verification.yml)

A simple command to clean 'scrub' Jenkins jobs.

## Install

```shell
$ virtualenv -p python3.6 scrub-jenkins-jobs
$ source scrub-jenkins-jobs/bin/activate
(scrub-jenkins-jobs) $ pip install git+https://github.com/ryankwilliams/scrub-jenkins-jobs.git
```

## Usage

The example below will scrub all jobs ending in `foo`.

```
# Simulation Mode
(scrub-jenkins-jobs) $ scrub-jenkins-job JENKINS_URL JENKINS_USERNAME JENKINS_PASSWORD \
foo$ --dry-run

# Normal Mode
(scrub-jenkins-jobs) $ scrub-jenkins-job JENKINS_URL JENKINS_USERNAME JENKINS_PASSWORD \
foo$
```