Utilities for Informatics Matters CI/CD configuration
Project description
The im-jenkins-utils module is a set of utilities employed by Informatics Matters for automated configuration of the Jenkins CI/CD platform. It is a small library that currently simplifies the creation of Jobs, secrets and other actions using python-jenkins and cURL.
It also includes a growing list of convenient wrapper functions to simplify a number of tasks, like checking whether any jobs have failed (or are unstable).
Typical use of the utilities relies on creating an ImJenkinsServer object by providing a suitably formatted URL:
from im_jenkins_server import ImJenkinsServer j_server = ImJenkinsServer(url)
The url value is typically of the form https://<user>:<token>@<url>.
With this object you can then create a global text secret:
if j_server.is_connected(): j_server.set_secret_text('mySecretId', 'The Secret Text')
ImJenkinsServer provides the following methods: -
set_secret_text()
set_secret_file()
set_secret_user()
get_jobs()
set_jobs()
get_views()
set_views()
check_jobs()
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 Distributions
Built Distribution
Hashes for im_jenkins_utils-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c83ee14f15808b0560e898e7bb574b1006bc761a14991fa44b6c5cb9353b74ad |
|
MD5 | 0d456ef34e50f1a9c01cf2886316ead6 |
|
BLAKE2b-256 | 8e05cd8264b39f0383f410ae4f0bf7f9b818c4de0be399a149f04eba0721353d |