Process Flow - Docker agent in Jenkinsfile
Start Jenkins Pipeline
Define Docker Agent
Jenkins pulls Docker image
Run build steps inside Docker container
Build steps execute commands
Container stops after steps
Pipeline ends
The Jenkins pipeline starts, defines a Docker agent, pulls the Docker image, runs build steps inside the container, then stops the container and ends.