- Page restrictions apply
- Attachments:1
- Added by Kohsuke Kawaguchi, last edited by davidmc24 - on Nov 11, 2012 (view change)
- show comment hide comment
|
This plugin integrates the Mercurial version control system with Jenkins. Plugin Information
With this plugin, you can designate a Mercurial repository as the "upstream" repository. Every build will then run something like hg pull -u to bring the tip of this upstream repository. In a similar manner, polling will check if the upstream repository contains any new changes, and use that as the triggering condition of the new build. This plugin is currently intended to support Mercurial 1.0 and later. Viewers included are bitbucket, fisheye, google-code, hgweb, kiln, and rhodecode. Push NotificationsAs of version 1.38 it's possible to trigger builds using push notifications instead of polling. In your repository's .hg/hgrc file add: [hooks] commit.jenkins = wget -q -O /dev/null <jenkins root>/mercurial/notifyCommit?url=<repository remote url> incoming.jenkins = wget -q -O /dev/null <jenkins root>/mercurial/notifyCommit?url=<repository remote url> This will scan all the jobs that's configured to check out the specified URL, and if they are also configured with polling, it'll immediately trigger the polling (and if that finds a change worth a build, a build will be triggered in turn.) This allows a script to remain the same whe |