Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ryankwilliams/scrub-jenkins-jobs
- Owner: ryankwilliams
- License: gpl-3.0
- Created: 2021-03-24T20:45:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-09T14:04:49.000Z (over 3 years ago)
- Last Synced: 2023-02-27T00:26:04.274Z (over 1 year ago)
- Language: Python
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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$
```