Skip to content

Docker Build - Steps

Steps

Steps

Job steps in the Docker plug-in

Docker Build

Build a Docker image from a Dockerfile and set the image id as a build life property.

NameTypeDescriptionRequired
Image PropertyStringThe name of the build life property to set the image id as.No
DOCKER_HOSTStringOptionally use a different Docker host value than the default. e.g. tcp://host:portNo
TagStringThe name to tag the image with if the build is successful.No
Build FlagsStringAdditional flags to pass to Docker build. e.g. no-cache=true -q rm=trueNo

Docker Push

Publish a Docker image to a registry.

NameTypeDescriptionRequired
DOCKER_HOSTStringOptionally use a different Docker host value than the default. e.g. tcp://host:portNo
Image NameStringThe name of the image to push to the registry. e.g. username/ubuntu or localhost.localdomain:5000/ubuntuYes
UsernameStringThe username used to log in to the registryYes
PasswordStringThe password used to log in to the registryYes
EmailStringThe email address used to log in to the registryYes
ServerStringThe registry server. e.g. localhost:5000. If no server is specified, https://index.docker.io/v1 is the default.No