Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ci.pluginsDockerpull

pull

fun pull(image: String, version: String = "latest", allowFailure: Boolean = false): 

Pulls a given image's version.

Note that pulling a previous version of an image before building a new version is useless: Docker's cache is able to reuse layers without pulling the image.

Parameters

image

The name of the image to pull (e.g. "alpine", "curlimages/curl").

version

The version to pull (e.g. "edge").

allowFailure

If set to true, failing to pull the image will be ignored, and will not fail the current job.