Jenkins Pipeline for building, testing and running Docker containers

Published on Author admin

Example Jenkins Pipeline for building, testing and running Docker containers.

Ingredients:
Jenkinsfile - Pipeline specification
GitHub - source code repository (for app and Jenkinsfile)
DockerHub - container registry

Required Jenkins plugins:
• GitHub plugin
• Docker Commons Plugin
• Build With Parameters
• Pipeline plugin

Pipeline architecture schema:

Jenkins Pipeline