Skip to content

Allow environment variables as values for some properties #79

@dansamsara

Description

@dansamsara

The pipeline upload command supports environment variable substitution using the syntax $VAR and ${VAR}. While the schema validation works fine for properties that are strings, it will fail for properties such as parallelism where the type is defined as an integer.

What do you think about expanding some properties like parallelism to allow for a string, in addition to an integer, as long as the string resembles an environment variable?

"oneOf": [
  { "type": "integer" },
  { "type": "string", "pattern": "^\\$[A-Z_]+$|^\\$\\{[A-Z_]+\\}$" }
],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions