CI Server integration

RhodeCode Webhook integration integration is a powerfull tool to allow interaction with systems like Jenkin, Bamboo, TeamCity, CircleCi or any other CI server that allows triggering a build using HTTP call.

Below are few examples on how to use Webhook integration to trigger a CI build.

General Webhook

Webhook integration allows sending a JSON payload information to specified custom URL with GET or POST methods. There are several variables that could be used in the URL greatly extending the flexibility of this type of integration.

Most of the modern CI systems such as Jenkins, TeamCity, Bamboo or CircleCi allows triggering builds via GET or POST calls.

Webhook integration can be either specified per each repository or globally, if your CI maps directly to all your projects a global Webhook integration integration can be created and will trigger builds for each change in projects. If only some projects allow triggering builds a global integration will also work because mostly a CI system will ignore a call for unspecified builds.


A quick note on security. It’s recommended to allow IP restrictions to only allow RhodeCode server to trigger builds. If you need to specify username and password this could be done by embedding it into a trigger URL, e.g.${project_id}

If users require to provide any custom parameters, they can be stored for each project inside the Repository Extra Fields. For example to migrate a current job that has a numeric build id, storing this as jenkins_build_id key extra field the url would look like that:



Please note that some variables will result in multiple calls. e.g. for Mercurial specifying ${branch} will trigger as many builds as how many branches the user actually pushed. Same applies to ${commit_id} This will trigger many builds if many commits are pushed. This allows triggering individual builds for each pushed commit.


To use Jenkins CI with RhodeCode, a Jenkins Build with Parameters should be used. Plugin details are available here:

If the plugin is configured, RhodeCode can trigger builds automatically by calling such example url provided in Webhook integration integration:


The RhodeCode Enterprise includes a custom Jenkins integration integration. That allows using some of Jenkins added security features. Please check also the above link for more examples.

Team City

To use TeamCity CI it’s enough to call the API and provide a buildId. Example url after configuring Repository Extra Fields would look like that:


Each project can have many build configurations. buildTypeId which is a unique ID for each build configuration (job).


To use CircleCi, a POST call needs to be triggered. Example build url would look like this:


Circle Ci expects format of:

POST: /project/:vcs-type/:username/:project/tree/:branch

CircleCi API documentation can be found here: