Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.01 KB

File metadata and controls

33 lines (20 loc) · 1.01 KB

Jenkins infrastructure acceptance tests

This repository contains branches which act as acceptance tests for the Jenkins projects infrastructure.

How this repository works

This repository uses the Multibranch Pipeline support in Jenkins to treat each branch as its own Pipeline project. This is a pattern developed by Mark Waite for running acceptance tests for the git-plugin within Jenkins.

This means that each acceptance test case is a different branch in this repository.

Creating a test case

  1. Create a new empty branch: git checkout --orphan name-of-my-new-test-case

  2. Remove the files sitting around in the current working directory: rm -rf *

  3. Reset the git staging area: git reset --hard

  4. Create a Jenkinsfile and README.adoc

  5. Implement your test(s)

  6. Add your changes: git add Jenkinsfile README.adoc and commit.