Skip to content

Tips and tricks

Tim Dudgeon edited this page May 18, 2017 · 2 revisions

Trigger build on commit

How to trigger a build when a commit is made to github: (note: this is partly black magic - some steps may be missing)

  1. Go to the repo on GitHub and edit the settings
  2. Find the "Integrations & services" section
  3. Add a service and choose "Jenkins (GitHub plugin)"
  4. Configure the hook URL. It will likely need to be https://jenkins.openrisknet.org/github-webhook/

In Jenkins to check whether the events are being received:

  1. Go to the job of concern
  2. Look at the "Repository Events" section and you should see a new event when a commit is made to GitHub

An example can be found here.

Clone this wiki locally