Skip to content

jenkinsci/core-pr-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins Pull-Request Tester Docker Image

Lets you test a pull-request on the Jenkins project in a clean environment.

How to use

$ docker run --rm -ti -p 8080:8080 -e ID=2200 jenkins/core-pr-tester

How to change the Jenkins home directory

The Jenkins home directory can be set with JENKINS_HOME as an environment variable.

$ docker run --rm -ti -p 8080:8080 -e ID=2200 -e JENKINS_HOME=/custom/directory/path jenkins/core-pr-tester

How to merge with master branch

An additional environment variable MERGE_WITH= can be passed to merge the PR with any existing branch from the repository, before starting the build.

NOTE: the merge must not have conflict, or the whole execution will fail and stop.

Example:

$ docker run --rm -ti -p 8080:8080 -e ID=2200 -e MERGE_WITH=master jenkins/core-pr-tester

Misc

WTF: that image is very big, and one layer is 500+ MB!

To accelerate testing at __run__time, the Docker image has been built trying to cache as much as possible things required to build Jenkins. Like, for example, the Jenkins Maven dependencies both for 1.x and 2.x. That results in a very big layer especially for that part.

The goal is that Maven has ideally to download no new dependency to build the requested pull request.