Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Update bitbucket status for each env

Project Description

Tox plugin that pushes status reports back to BitBucket.

Installation:

$ pip install hg+https://bitbucket.org/hpk42/tox@hook/report-status#egg=tox
$ pip install tox-bitbucket-status

(You need to install the custom tox version for now, until the next version of tox is released).

Usage:

You need to ensure the following environment variables are set in your environment:

CI
CI_NAME
CI_COMMIT_ID
CI_BUILD_URL
BB_USERNAME (will default to $BB_REPO_OWNER if not set)
BB_PASSWORD
BB_REPO_OWNER
BB_REPO_SLUG

Then, your commits will get a build status after they are pushed to BitBucket.

Just like the ones in this repository.

Codeship

The CI_* variables are all set by Codeship, but you will need to seth the BB_* variables yourself.

Jenkins

If you are using Jenkins and the Mercurial plugin, then some of the environment will be detected from the environment variables that are set:

CI → True
CI_NAME → 'Jenkins'
CI_BUILD_URL → $BUILD_URL
CI_COMMIT_ID → $MERCURIAL_REVISION

BB_REPO_OWNER : extracted from $MERCURIAL_REPOSITORY_URL
BB_REPO_SLUG : extracted from $MERCURIAL_REPOSITORY_URL

At this point, the extraction of the owner/slug from the repo url only does sanity checking for mercurial repos (ie, that they are from bitbucket). Pull requests to support git repo urls will be accepted.

Release History

Release History

This version
History Node

1.0

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
tox-bitbucket-status-1.0.tar.gz (2.8 kB) Copy SHA256 Checksum SHA256 Source Oct 17, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting