jobs.<job_id>.environment

1 minute read

Use jobs.<job_id>.environment to define the environment that the job references.

  • The only deployment protection rule for CloudBees platform is the indicator that an environment requires an approval.

  • If the referenced environment has manual approvals enabled, the job does not start until approved.

  • Once the job is approved and started, the properties defined in the environment are made available to the job, using standard vars.* and secrets.* expressions.

Provide the environment as only the environment name, as in the following example:

environment: dev