GitLab CI Kotlin DSL • opensavvy.gitlab.ci • Environment
Environment¶
class Environment : YamlExport
Declares which environment this job interacts with.
To declare the environment, see Job.environment
.
Types¶
EnvironmentAction
¶
EnvironmentTier
¶
Functions¶
action
¶
fun action(action: Environment.EnvironmentAction)
Specify how this job interacts with the environment. See EnvironmentAction
.
name
¶
Declares the name of the environment, as it will be displayed in the GitLab UI.
stopJob
¶
Specifies a stopJob
that will be executed once the environment should be stopped.
tier
¶
fun tier(tier: Environment.EnvironmentTier)
Declares which tier this job deploys.
toYaml
¶
Converts this object into a Yaml object.
url
¶
Declares the URL on which the deployed environment is available.