Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate step keys pass validation but fail upload #60

Open
lucylura opened this issue Aug 28, 2023 · 0 comments
Open

Duplicate step keys pass validation but fail upload #60

lucylura opened this issue Aug 28, 2023 · 0 comments

Comments

@lucylura
Copy link

Consider the following example pipeline with duplicate step keys:

---
steps:
- key: my_duplicate_step_key
  label: ":bash: Hello World One"
  agents:
    queue: my-queue
  command: echo "hello world"
- key: my_duplicate_step_key
  label: ":bash: Hello World Two"
  agents:
    queue: my-queue
  command: echo "hello world again"

Validating this pipeline against the schema does not raise any issues.

However, when attempting to upload the pipeline to Buildkite, an error will be presented:

Failed to upload and process pipeline: Pipeline upload rejected: 
The key "my_duplicate_step_key" has already been used by another step in this build
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

No branches or pull requests

1 participant