Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mattddowney/jenk-bash

Interact with the Jenkins API from bash
https://github.com/mattddowney/jenk-bash

api-client bash cli command-line continuous-integration jenkins pipeline

Last synced: 15 days ago
JSON representation

Interact with the Jenkins API from bash

Awesome Lists containing this project

README

        

jenk-bash
=========

There is a newer version of this software written in go [here](https://github.com/mattddowney/jenk)

Interact with the [Jenkins](https://jenkins.io/) API from 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)

Usage:
------

```
$ ./jenk
./jenk is a tool for interacting with the Jenkins API.

Usage:

./jenk command [arguments]

The commands are:

abort-input abort a pipeline input
copy-job copy a job from another
create-job create a job
env print environment information
trigger-input trigger a pipeline input

Use "./jenk help [command]" for more information about a command.
```