August 2017
Intermediate to advanced
332 pages
9h 16m
English
When the Jenkinsfile script grows in size and becomes more complex, we may want to reuse its parts between similar pipelines.
For example, we may want to have separate, but similar, pipelines for different environments (dev, QA, prod). Another common example in the microservice world is that each service has a very similar Jenkinsfile. Then, how do we write Jenkinsfile scripts so that we don't repeat the same code all over again? There are two good patterns for this purpose, parameterized build and shared libraries. Let's describe them one by one.
Read now
Unlock full access