-
Notifications
You must be signed in to change notification settings - Fork 51
How to initiate a build on Kochiku
In addition to performing manual Kochiku builds, you can configure Kochiku to perform automatic builds in response to certain events.
To configure automatic builds, you need to add a web hook to your Git server.
If you're using Github, see the instructions for Adding a Webhook. Configure the webhook to post to http://YOUR-KOCHIKU-HOST/pull-request-builder
.
If you enable the Build on push option in the settings for a repository, Kochiku starts a build whenever commits are pushed to the repository's master branch.
If you enable the Build pull requests option in the settings for a repository, Kochiku starts a build whenever a pull request is created or a branch with an open pull request is updated.
You can run the kochiku-build
shell script to start a build. Copy kochiku-build.sh.sample to somewhere on your path and edit it to use the hostname of your kochiku server. To start a build, run kochiku-build
from any repository on your computer that has been added to Kochiku.
Starting a build with this script creates a "developer" project in Kochiku. These projects are prefixed with the hostname of the computer initiating the build. This separates developer builds from the CI builds of the repository's master branch.
Each Kochiku project page has a Build button in the upper-right corner.
- From the main project page for a repository, click Build to build the master branch.
- From any developer project page for a repository, first provide a git revision number in the textbox next to the Build button, then click Build to build that revision.