tag

fun tag(name: String)(source)

Adds a tag to this job.

Only runners that possess the same tag(s) will be able to execute this job.

Example

To run a job only on runners that are configured with the tags ArchLinux and Docker:

val test by job {
tag("archlinux")
tag("docker")

script { … }
}

The tags themselves do not have any special meaning, though official GitLab Runners use a few standard ones. Each official runner is listed with its tags in the project settings' runner list.

External resources