Skip to main content

A Python API for accessing lockable resources from Jenkins lockable-resources plugin.

Reason this release was yanked:

Not proper release

Project description

Jenkins Lockable Resources Plugin Library

Pipeline Status

About the library

This library and CLI utility was developped to access and control Jenkins Lockable-Resources plugin because the current version of the plugin does not provide REST APIs.

Prerequisite

As python2 is on its way to be deprecated, this tool was designed for python3 only.

The command line interface has been written with click package and all commands are designed as click plugins, wich requires click-plugins contrib package. An optionnal click-completion package can also be installed in order to give shell completion feature.

Install

The tool may be installed from sources with pip package manager from PyPi.

pip3 install jenkins-lockable-resources

Testing

This package is tested using pytest framework. See requirements-test.txt for the list of required packages.

Install requirements for testing:

pip3 install -r requirements-test.txt

The tests are held in tests directory. Simply execute pytest from command line:

pytest tests

Development

For development, install as editable:

pip3 install -e .

License

The MIT License (MIT): Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

jenkins-lockable-resources-0.1.1a1.tar.gz (9.4 kB view details)

Uploaded Source

File details

Details for the file jenkins-lockable-resources-0.1.1a1.tar.gz.

File metadata

  • Download URL: jenkins-lockable-resources-0.1.1a1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.9

File hashes

Hashes for jenkins-lockable-resources-0.1.1a1.tar.gz
Algorithm Hash digest
SHA256 b95320748b9fa6cbff8a095744255e9b70e66b19db4005ba730270c4a539322f
MD5 013288875ac3426a9abb1dc4286ef1a0
BLAKE2b-256 e138ce372ef6315f2552f554103a00604b0e948133067f77929abf880e865aee

See more details on using hashes here.

Supported by

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