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
Metadata
Release files for jenkinsc 0.0.44
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jenkinsc-0.0.44.tar.gz | 4.6 kB | Without provenance | Details for jenkinsc-0.0.44.tar.gz |
Release files / jenkinsc-0.0.44.tar.gz
| Download URL | jenkinsc-0.0.44.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1d871db831dc70b2d6c31858ceb77131f0a12065cec3d17684143501b6bb62a
|
|
BLAKE2b-256 checksum How to use checksums |
0f26ad60afa930669a8dcc5ac598fbe249be2db9fa0c06a9b795abc4999a08b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for jenkinsc 0.0.44
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.