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

Delete job:

jcli job delete <job_name>

Build parameterized job:

jcli job build <job_name> -p ‘{“GERRIT_REFSPEC”: “my_refspec”, “GERRIT_BRANCH”: “my_branch”, “Cleanup_provisioned_resources”:”true”}’

Copy job:

jcli job copy my_current_job my_new_awesome_job

Disable job:

jcli job disable my_job

Enable job:

jcli job enable his_job

Print information on last build of specific job:

jcli job last_build super-mario-job

### View examples

List all views:

jcli view list

List views that contain the string ‘hello’:

jcli view list hello

Delete view:

jcli view delete view90

List all the jobs under specific view:

jcli view jobs view1

Create new view:

jcli view create new_view

### Node examples

List all nodes:

jcli node list

Delete node:

jcli node delete <node_name>

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.1.dev24
Filename, size File type Python version Upload date Hashes
Filename, size jcli-0.0.1.dev24.tar.gz (11.0 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