Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jamesalbert/spankins
- Owner: jamesalbert
- License: gpl-3.0
- Created: 2018-08-27T20:31:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:54:04.000Z (almost 2 years ago)
- Last Synced: 2024-09-30T08:21:19.454Z (about 2 months ago)
- Topics: jenkins, legit-as-heck, profiles
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```
spankinsUsage:
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 --versionOptions:
-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
```