Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alexmerser/d2ff3a3fad29a1096b63 to your computer and use it in GitHub Desktop.
Save alexmerser/d2ff3a3fad29a1096b63 to your computer and use it in GitHub Desktop.
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