CloudBees has determined that this plugin will be removed from the CloudBees Assurance Program (CAP) in late 2022. Notification will be provided prior to the removal of the plugin. Please contact CloudBees Support if you have any concerns or questions.
This Jenkins plugin allows to build Docker images on a Docker server and then publish them to Docker Hub or other Docker registries.
The entire functionality is implemented as a single build step
Publishing to docker index/registry including Docker Hub
Credentials support for Docker servers and registries (provided by Docker Commons plugin)
On-demand tagging of built images
On-demand fingerprinting of built images
Image clean build with
--no-cacheoption (rebuild of all steps from
|Detailed usage guidelines are available on the plugin’s README on GitHub. This article addresses cases related to CloudBees Jenkins Enterprise and other plugins documented in this manual.|
The entire functionality is implemented as a single build step.
In Advanced options you can disable building and publishing sub-steps using Skip Push and Skip Pull controls.
Force pull is enabled by default in order to build images with the latest version of the source image specified in the
Image fingerprint creation is enabled by default in order to support value-added features like the Docker Traceability plugin.
Below you can find a sample configuration of the build step:
CloudBees Docker Build and Publish plugin uses Docker command line tool to interact with Docker servers and registries. Currently there is no integration with Docker
ToolInstallation provided by Docker Commons plugin. This plugin expects that
docker binary is available in the
PATH environment variable on the node where the build is being performed.
Workaround: Define Docker CLI binary in
PATH environment variable of each node, which may be used to run builds with Docker Build and Publish steps.