Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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()
  • get_views()
  • set_views()
  • 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.

Files for im-jenkins-utils, version 1.2.0
Filename, size File type Python version Upload date Hashes
Filename, size im_jenkins_utils-1.2.0-py3-none-any.whl (9.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page