Docker Build Pipeline
Currently, the ansible scripts provision a generic Docker build pipeline, with the following layout.
- Phase 1
- GetLatestFromSCM
- Phase 2
- IntegrationTesting
- UnitTesting
- Phase 3
- PushToDockerHub
- Phase 4
- FunctionalTesting
- Phase 5
- PushToDockerHub-QA
- Phase 6
- DeployToQA
Key Jenkins plugin used:
- docker-plugin
- docker-build-step
- build-pipeline-plugin
- clone-workspace-scm
NB. All plugins and dependencies listed above are all installed using Ansible by default. Also, most of the tools needed to run builds are installed on the docker slaves.
To provision the Jenkins environment with your pipeline of choice, the target_jenkins_env variable should be overridden.
- Set it to docker to create a docker pipeline
To override, locate the desired override variable file in the provisioners/ansible/roles/shared/vars folder and place the following within the yaml file.
Example
target_jenkins_env: docker # creates a docker pipeline