I’m reading this book, and find it provides a systematic view of Jenkins 2, as well as many tips. It definitely worths reading. Below is a brief summary of what I have learned from this book:
- Jenkins 2 introduces the Declarative Pipeline, which is different from the Script Pipeline from Jenkins 1. The Declarative Pipeline is recommended over the Script Pipeline.
- A comprehensive pipeline should includes the following parts:
- Build
- Deploy
- Test
- Release
- Staging
- Production
- The declarative pipeline has a clear structure, as the following picture shows (taken from the book).
- The “Pipeline Syntax: Snippet Generator” is a very useful tip for me to quickly generate snippet without checking documentations.
- The examples of custom libraries give solutions in the future if I need to build more complex pipelines.