Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jamesalbert/spankins

Stored Profiles for your Jenkins instances.
https://github.com/jamesalbert/spankins

jenkins legit-as-heck profiles

Last synced: about 1 month ago
JSON representation

Stored Profiles for your Jenkins instances.

Awesome Lists containing this project

README

        

# spankins
**s**end **pa**in to Je**nkins**

**s**tored **p**rofiles **a**nd Je**nkins**

Spankins is a great word.

## Application

```
spankins

Usage:
spankins auth --url= --username= (--password=|--token=) [--profile=]
spankins ping --profile=
spankins send --profile= [--out=]
spankins send template --profile= (--arg==)... [--out=]
spankins diagnose --profile= [--out=]
spankins master add --profile= [--out=]
spankins agent-port set --profile= [--out=]
spankins (-h | --help)
spankins --version

Options:
-h --help Show this screen.
--version Show version.
```

## Installation

`pip install spankins`

## Quickstart

Spankins makes interfacing with multiple jenkins instances easy with profiles. Credentials are stored locally in plain-text (totally legit).

```sh
$ spankins auth --url=https://jenkins.me.com [email protected] --token=JHH34JHLJ3H43LH3 --profile=myJenkins
$ cat ~/.jenkins | jq
{
"myJenkins": {
"url": "https://jenkins.me.com",
"username": "[email protected]",
"password": null,
"token": "JHH34JHLJ3H43LH3"
}
}
$ # spankins provides a few helper scripts
$ spankins ping --profile=myJenkins
pong

$ spankins master add newMaster --profile=myJenkins
Created ClientMaster 'newMaster' known as '0-newMaster'
-DMASTER_INDEX=0'
-DMASTER_NAME=newMaster'
-DMASTER_GRANT_ID=6049b0a1-0dbb-4d01-aa02-4e60de514590'

$ # you can also send your own script (note the difference between `send` and `send template`)
$ spankins send ./scripts/bitcoin.groovy --profile=myJenkins --out=./logs/bitcoin.log
$ # if you have a jinja2-templated groovy script: println("Good {{ when }}, {{ name }}")
$ spankins send template ./templates/greet.groovy --arg=name=Penny --arg=when=afternoon --profile=myJenkins
Good afternoon, Penny
```