Skip to content

mnovak1/JenkinsOnPullRequests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Scripts to run Jenkins against every new pull request of a GitHub project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages