{jenkins-plugin-info:pluginId=docker-build-step}

This plugin allows to add various Docker commands into your job as a build step

If you would like to use Docker for dynamics slave provisioning, you should check this plugin.

Plugin currently support following commands:

Some commands also export build variables, so that you can easily use them in subsequent build steps.
Variables exported by create and start commands:

When port binding in set up (in start command), following environment variables are exported:

Known limitations: Commands run without any issue only on master, on remote slaves command execution fails, see JENKINS-24071 for details.

Configuration

You have to make sure that Docker service is running on slaves where you run the build. In Jenkins global configuration, you need to specify Docker REST API URL (typically somethig like http://127.0.0.1:2375) and select build steps you'd like to perform in your job configuration.

Changelog

Upcoming changes

Release 2.0 (2018-01-21)

Release 1.43 (2017-06-09)

Release 1.42 (2017-05-22)

Release 1.41 (2017-03-30)

Release 1.40 (2017-03-10)

Release 1.39 (2017-02-08)

Release 1.38 (2017-01-18)

Release 1.37 (2017-01-05)

Release 1.36 (2017-01-05)

Release 1.35 (2016-05-11)

Release 1.34 (2016-03-01)

Release 1.33 (2015-11-19)

Release 1.32 (2015-10-30)

Release 1.31 (2015-09-05)

Release 1.30 (2015-08-28)

Release 1.29 (2015-08-14)

Release 1.28 (2015-07-24)

Release 1.27 (2015-07-15)

Release 1.26 (2015-06-26)

Release 1.25 (2015-06-05)

Release 1.24 (2015-05-07)

Release 1.23 (2015-04-28)

Release 1.22 (2015-04-07)

Release 1.21 (2015-03-11)

Release 1.20 (2015-02-27)

Release 1.19 (2015-02-23)

Release 1.18 (2015-01-19)

Release 1.17 (2015-01-07)

Release 1.16 (2014-12-05)

Release 1.15 (2014-12-04)

Release 1.14 (2014-11-25)

Release 1.13 (2014-11-06)

Release 1.12 (2014-10-24)

Release 1.11 (2014-10-01)

Release 1.10 (2014-09-19)

Release 1.9 (2014-08-21)

Release 1.8 (2014-08-15)

Release 1.7 (2014-08-06)

Release 1.6 (2014-06-17)

Release 1.5 (2014-06-07)

Release 1.4 (2014-05-28)

Release 1.3 (2014-05-21)

Release 1.2 (2014-04-06)

Release 1.1 (2014-03-06)

Release 1.0 (2014-02-17)