Skip to content

Instantly share code, notes, and snippets.

@andreagrandi
Created August 12, 2013 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andreagrandi/6213571 to your computer and use it in GitHub Desktop.
Save andreagrandi/6213571 to your computer and use it in GitHub Desktop.
Bazaar hook to trigger a Jenkins build.
from bzrlib import branch
import urllib
JENKINS_URL = 'http://.....'
def post_change_branch_tip_hook(push_result):
urllib.openurl(JENKINS_URL)
branch.Branch.hooks.install_named_hook('post_change_branch_tip',
post_change_branch_tip_hook, 'Jenkins build hook')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment