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.

Source Distribution

jcli-0.0.1.dev24.tar.gz (11.0 kB view details)

Uploaded Source

File details

Details for the file jcli-0.0.1.dev24.tar.gz.

File metadata

  • Download URL: jcli-0.0.1.dev24.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jcli-0.0.1.dev24.tar.gz
Algorithm Hash digest
SHA256 78d7dee826aa27a7a7661e5962581f7cc0a676702f5c6754ac837ee80c2ef23f
MD5 8215709f16fcd3fd1b0f06c40942de75
BLAKE2b-256 9fd512edbadee3efa598dff815d83e0a8f18fa006ec0460498a3cdfee9a67268

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page