Skip to content

Restrict with's first type to be string#124

Closed
thejcannon wants to merge 3 commits intobuildkite:mainfrom
thejcannon:patch-15
Closed

Restrict with's first type to be string#124
thejcannon wants to merge 3 commits intobuildkite:mainfrom
thejcannon:patch-15

Conversation

@thejcannon
Copy link
Contributor

The following pipeline errors with "Each element in a matrix.adjustments.with must be either a hash or a string":

steps:
  - label: "💥 Matrix build with adjustments"
    command: "echo"
    matrix:
      setup:
        - "2"
      adjustments:
        - with:
            - "2"
          soft_fail: true

schema.json Outdated
Comment on lines 848 to 849
"type": "string",
"description": "List of existing or new elements for single-dimension Build Matrix",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW This kind of smells like a bug in the server-side pipeline validator (that it forces string and doesn't allow int or bool). I tried making the with: value an int and it did error, so this new schema is accurate.

@angusfretwell
Copy link
Contributor

Closing in favour of #128

@thejcannon thejcannon deleted the patch-15 branch January 15, 2025 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants