Skip to main content

Command-line Interface for Jenkins

Project description

The ultimate Jenkins ClI ;)

Install

To install jcli on your system, run the following command:

sudo pip install .

Setup config

jcli is using configuartion file to connect the server.

It can be setup in one of the following paths:

/etc/jcli/config.ini pwd/config.ini

or it can passed as an argument.

Minimal configuartion is:

[jenkins] user=<jenkins_user> password=<api_token> url=<jenkins_url>

Examples

### Job examples

Print list of all the jobs:

jcli job list

Print jobs which contain the string ‘coreci’ in their names:

jcli job list coreci

Print the number of jobs on Jenkins server:

jcli job count

Full list of job commands can be found [here](https://github.com/bregman-arie/jcli/tree/master/doc/job.md)

### View examples

List all views:

jcli view list

Delete view:

jcli view delete view90

Full list of view commands can be found [here](https://github.com/bregman-arie/jcli/tree/master/doc/view.md)

### Node examples

List all nodes:

jcli node list

Delete node:

jcli node delete <node_name>

### Plugin examples

List all installed plugins:

jcli plugin list

List infromation on specific plugin:

jcli plugin list python

License

Apache

Author Information

Arie Bregman - abregman@redhat.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jcli, version 0.0.2.dev29
Filename, size File type Python version Upload date Hashes
Filename, size jcli-0.0.2.dev29.tar.gz (11.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page