The purpose of these sample series is to create a simple set of examples, which showcases CI/CD as Code, using Jenkins. Primary goal is to create a stateless CI/CD setup, which can be bootstrapped from a set of configuration files and scripts so that many problems related to maintenance of the infrastructure and other operational issues are reduced.
A step by step approach is followed while implementing the examples. The documentation regarding each step can be reached using the links below.
- Introduce a statefully containerised Jenkins
- Complete the basic setup of Jenkins via code: The goal of this step is to complete basic setup of Jenkins completely programmatically.
- First steps to 'job as code' : In this step, we are going to head towards configuring jobs programmatically.
- Stateless Jenkins - Job as Code Part II: In this part we are going to finalise setup and define some example jobs.
The articles are also available in my blog.