Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattddowney/jenk
Interact with Jenkins via the command line. Written in Go.
https://github.com/mattddowney/jenk
api-client cli command-line continuous-integration go golang jenkins pipeline
Last synced: 14 days ago
JSON representation
Interact with Jenkins via the command line. Written in Go.
- Host: GitHub
- URL: https://github.com/mattddowney/jenk
- Owner: mattddowney
- Created: 2017-05-20T05:35:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-25T22:59:16.000Z (over 7 years ago)
- Last Synced: 2024-11-12T09:27:40.658Z (2 months ago)
- Topics: api-client, cli, command-line, continuous-integration, go, golang, jenkins, pipeline
- Language: Go
- Size: 25.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jenk
====Interact with [Jenkins](https://jenkins.io/) via the command line. Written in Go.
Rewrite of [jenk-bash](https://github.com/mattddowney/jenk-bash).Copy jobs, create pipelines, and trigger pipeline inputs.
Setup:
------Set the following environment variables:
* JENKINS_ROOT_URL - The url of the Jenkins server (IE: http://localhost:8080)
* JENKINS_USER_NAME - Jenkins user with API access
* JENKINS_TOKEN - Access token obtained from Jenkins (http://localhost:8080/me/configure)*OR*
Create a configuration file named `.jenk.yaml` in your home directory containing same variables,
with the following layout:```yaml
JENKINS_ROOT_URL: http://localhost:8080
JENKINS_USER_NAME: username
JENKINS_TOKEN: token_from_jenkins
```Usage:
------```
$ ./jenk
A tool for interacting with the Jenkins API.Usage:
jenk [command]Available Commands:
abort-input Aborts a pipeline input
copy-job Copy a Jenkins job
create-job Create a Jenkins job
env Print the current environment
help Help about any command
trigger-input Triggers a pipeline inputFlags:
--config string config file (default is $HOME/.jenk.yaml)
-h, --help help for jenk
-t, --toggle Help message for toggleUse "jenk [command] --help" for more information about a command.
```