Jenkins how code
You list mainly the benefits of having Jenkins as code. This is indeed a very powerful installation, but does not necessarily require Docker.
So why is Docker the best choice for installing code in Jenkins as Code?
docker
The main reason is that Jenkins pipelines really work well with Docker. Without Docker, you need to install additional tools and add various agents to Jenkins. With a docker
- there is no need to install additional tools, you just use images of these tools. Jenkins downloads them from the Internet for you (Docker Hub).
- For each stage in the pipeline, you can use different images (i.e. a tool). In essence, you get "Jenkins micro agents" that only exist temporarily. Therefore, you no longer need persistent agents. This makes your Jenkins settings much cleaner.
Beginning
Some time ago, I wrote a small blog on how to get started with Jenkins and Docker , that is, create a Jenkins image for development, which can be launched and destroyed in seconds.
source share