Skip to content

Commit

Permalink
Expose BUILDKITE_STEP_ID and BUILDKITE_STEP_KEY (#26)
Browse files Browse the repository at this point in the history
Adding BUILDKITE_STEP_ID and BUILDKITE_STEP_KEY to the `allowedEnvs`
  • Loading branch information
Bencodes authored May 20, 2021
1 parent 8b39537 commit 2411666
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/job.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ local allowedEnvs = std.set(
'BUILDKITE_REBUILT_FROM_BUILD_NUMBER',
'BUILDKITE_REPO',
'BUILDKITE_SOURCE',
'BUILDKITE_STEP_ID',
'BUILDKITE_STEP_KEY',
]
);

Expand Down Expand Up @@ -155,6 +157,8 @@ function(jobName, agentEnv={}, stepEnvFile='', patchFunc=identity) patchFunc({
'buildkite/agent-id': env.BUILDKITE_AGENT_ID,
'buildkite/agent-name': env.BUILDKITE_AGENT_NAME,
'buildkite/job-id': env.BUILDKITE_JOB_ID,
'buildkite/step-id': env.BUILDKITE_STEP_ID,
'buildkite/step-key': env.BUILDKITE_STEP_KEY,
'job-name': jobName,
},

Expand Down

0 comments on commit 2411666

Please sign in to comment.