bulletproof jenkins client
Project description
Python Jenkins client
jenkinsc is a client library for Jenkins API that is made to handle all the possible connectivity and Jenkins API issues
Installation
pip install jenkinsc
How to use
Here an example of usage:
jenkins = Jenkins('environ['JENKINS_URL']', username=environ['JENKINS_USR'], password=environ['JENKINS_PWD'])
jenkins['JOBNAME'].build(build_params={'SRC': 'myscr/folder', 'VERSION': '111'}) # Non blocking jenkins job call
queue_item = jenkins['JOBNAME2'].build(build_params={'REDEPLOY': 'true', 'VERSION': '111'}, block=True) # will wait till the job is finished
if not queue_item.get_build().successful():
raise Exception('JOB2 failed')
How to deploy
jenkinsc is deployed automatically on adding new tag.
To make a new release just add a tag on master after upgrading package version in setup.py
.
How to add a tag
Example:
git tag -a v0.0.37 -m "Version 0.0.37"
git push --tag
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jenkinsc-0.0.44.tar.gz
(4.6 kB
view details)
File details
Details for the file jenkinsc-0.0.44.tar.gz
.
File metadata
- Download URL: jenkinsc-0.0.44.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1d871db831dc70b2d6c31858ceb77131f0a12065cec3d17684143501b6bb62a |
|
MD5 | 0c5b6378eb775585e59db769abae2554 |
|
BLAKE2b-256 | 0f26ad60afa930669a8dcc5ac598fbe249be2db9fa0c06a9b795abc4999a08b9 |