Skip to main content

Mercurial extension to start new Jenkins jobs.

Project description

The poke-jenkins is a Mercurial extension that for the heads of an incoming changeset starts a Jenkins job.

https://api.travis-ci.org/paylogic/poke-jenkins.png https://pypip.in/v/poke-jenkins/badge.png https://coveralls.io/repos/paylogic/poke-jenkins/badge.png?branch=master

Installation

pip install poke-jenkins

Configuration

An example of .hg/hgrc of your remote repository:

[extensions]
poke_jenkins =

[poke_jenkins]

# Jenkins url
jenkins_base_url = http://ci.example.com

# List the jobs you want to start
jobs = Project_Tests_Dev Project_Coverage_Dev

# Feel free to change this parameter
tag = foo

# The url which Jenkins will use to clone the repository
repo_url = ssh://code.example.com//example

# Timeout in seconds
timeout = 10

# Jenkins user id
username = foo

# Jenkins API Token
password = bar

# Branch regular expression filter
branch_regex = ^c\d{4}

Usage

With given configuration above, it will call jenkins jobs to start builds:

It will add basic auth headers to authenticate the calls if username and password settings are set.

Python3 support

Package itself supports python3 out of the box, but not mercurial ATM.

Contact

If you have questions, bug reports, suggestions, etc. please create an issue on the GitHub project page.

License

This software is licensed under the MIT license

See License

© 2013 Paylogic International.

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

poke-jenkins-1.1.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file poke-jenkins-1.1.1.tar.gz.

File metadata

File hashes

Hashes for poke-jenkins-1.1.1.tar.gz
Algorithm Hash digest
SHA256 0f024e764e8e9a7a51e2001e829af83a273771428244f4fd38ec90cd8967987f
MD5 7de23f484ce50c4db151bcb438fab6fd
BLAKE2b-256 18a104a9cccc895971b9d795bbd3f3cc1d7798295da0df3b6807a13a672d64a8

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