image

fun image(name: String, version: String = "latest", configuration: ContainerImage.() -> Unit = {})(source)

The container image used to execute this job.

Example

val ubuntu by job {
image("ubuntu")

script {
shell("echo 'Hello world!'")
}
}

In this example, the runner will download the latest Ubuntu image and run the bash script that prints Hello world!.

External resources