Autotag

The Docker plugin can be configured to automatically tag your images. When this feature is enabled and the event type is tag, the plugin will automatically tag the image using the standard major, minor, release convention. For example:

1.0.0 produces docker tags 1, 1.0, 1.0.0

1.0.0-rc.1 produces docker tags 1.0.0-rc.1

When the event type is push and the target branch is your default branch (e.g. master) the plugin will automatically tag the image as latest. All other event types and branches are ignored.

Please note that auto-tagging is intentionally simple and opinionated. We are not accepting pull requests at this time to further customize the logic.

Multi-stage builds

The Docker plugin allow to stop build at a specific stage defined in Dockerfile as described in the official docs.
If the target attribute is not defined, the Docker plugin will not stop at any stage and build the full docker image.