Skip to content

Support overrideable env vars #1901

Description

@ranjanashish

Is your feature request related to a problem? Please describe.
GitLab runners can define env vars that get injected into jobs. But if certain jobs on that runner define the same env vars, then they are overridden. Currently, this is not supported in gitlab-ci-local.

Describe the solution you'd like
Probably a --env-var option can help here. And a corresponding GCL_ENV_VAR_<> support to mirror the --variable and GCL_VARIABLE_<> support.

Describe alternatives you've considered
Nothing else.

Additional context
This helps with providing a good set of env vars for most jobs while also letting those one of jobs to define their own such env vars with different values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature missing according to gitlab ci standard

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions