+1 vote
1 view
in Devops and Agile by (25.5k points)

I am new to Jenkins. I want a way to integrate my Jenkins and Docker. What is the difference between docker Jenkins plugin and Jenkins pipeline with docker?

I have read both this

https://wiki.jenkins.io/plugins/servlet/mobile?contentId=71434989#content/view/71434989

https://jenkins.io/doc/book/pipeline/docker/

I feel like both approaches do the same thing running Jenkins slaves /node on a docker container, but I am not sure.

1 Answer

+1 vote
by (42.6k points)

The first link is about using docker commands in your Jenkins job to build your software. For example, your tools are inside docker containers and you want to run docker run --it maven:latest build against your code. It is normally a single step in the build job. The second link is about running a Jenkins agent as a docker container and running tools inside the container against your code. Here you will run a Jenkins agent, that will get the job definition from the Jenkins master and the execute the job's steps, i.e. more than one step also while being contained.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...