buildkite / buildkite/docs

Environmental variables exported in `command` don't propagate

Open
#1,137 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
59
Forks
313
PR merge metrics
No merged PRs in 30d

Description

We're trying to write a [plugin](https://github.com/CampusJob/kubernetes-logs-buildkite-plugin) configurable by the user in the `command` phase of the job, having the user set environmental variables then to be used by the `post-command` plugin hook.

We have found that when environmental variables are set in the `command` phase by the user, even using `export`, the variables fail to propagate to the `post-command` of the plugin.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.