Created
August 12, 2013 18:26
-
-
Save andreagrandi/6213571 to your computer and use it in GitHub Desktop.
Bazaar hook to trigger a Jenkins build.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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