GitLab CI Kotlin DSL • opensavvy.gitlab.ci • Job • variable
variable
Declares an environment variable that will be available for the entire length of the job.
Example
val test by job {
variable("version", "1.0")
script {
shell("echo \$version")
}
}
External resources
See also
Variable
Access predefined CI/CD variables.