Skip to main content

Utilities for Informatics Matters CI/CD configuration

Project description

https://travis-ci.org/InformaticsMatters/jenkins-utils.svg?branch=master https://badge.fury.io/py/im-jenkins-utils.svg

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()

  • check_jobs()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

im_jenkins_utils-1.1.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file im_jenkins_utils-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: im_jenkins_utils-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for im_jenkins_utils-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1e7bd6dd9236e54916bb577e5e0a361a97d21df451dd10f1a8e151126365257b
MD5 2d78095b6e2cbaee51e7d43854f9aaff
BLAKE2b-256 7574c4ae8fcf80e429bf6904bfd971899ce35f8dc7b5584f603aebf95bb32037

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