Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.02 KB

README.md

File metadata and controls

30 lines (18 loc) · 1.02 KB

Jenkins builds on GitHub pull requests

Scripts to run a Jenkins CI build against every open pull request of a GitHub project.

Requirements

The scripts require your Jenkins environment to have the following installed:

  • bash
  • curl

It requires the following Jenkins plugins:

It obviously also requires Git and GitHub plugins at Jenkins.

Instructions

  1. Enable Prepare an environment for the run and add your project's URL to Properties Content:
GITHUB_USER_PROJECT=FranciscoBorges/JenkinsOnPullRequests
GITHUB_PROJECT_URL=https://github.com/FranciscoBorges/JenkinsOnPullRequests
  1. Enable [ScriptTrigger] - Poll with a shell or batch script and use the contents of buildTrigger.sh. Set a suitable checking period (e.g. */5 * * * *).

  2. Enable Set build description, using PullNumber=[0-9]* for regular expression.