You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, the env variables should be merged, so any global envs should be merged into the local step envs
The text was updated successfully, but these errors were encountered:
agates4
changed the title
[bug] global environment variables replace step level environment variables entirely
[bug] global environment int variables cause golang error
Sep 7, 2023
@moskyb the BUILDKITE_COMMAND environment variable for container_0 is modified with the golang error:
BUILDKITE_COMMAND: echo "failed parsing Kubernetes plugin: json: cannot unmarshal bool into Go struct field EnvVar.PodSpec.containers.env.value of type string" && exit 1
similar error on container-0 when the gitEnvFrom is misconfigured. an error should be thrown here instead.
- name: BUILDKITE_COMMAND
value: 'echo "failed parsing Kubernetes plugin: json: cannot unmarshal array into Go struct field EnvFromSource.GitEnvFrom.secretRef of type v1.SecretEnvSource" && exit 1'
If global environment variables are set in the top level pipeline file as an int, it'll cause a golang error and won't be processed
Also, the env variables should be merged, so any global envs should be merged into the local step envs
The text was updated successfully, but these errors were encountered: