[ci] Add yaml language server to pipelines (#15590) (#15591)

Add missing yaml-language-server definition to Buildkite pipeline files (static and dynamic generated) for consistency and to ease spotting errors with editors.

(cherry picked from commit cd01abb1c7)

Backport of #15590
This commit is contained in:
Dimitrios Liappis 2023-11-15 18:45:35 +02:00 committed by GitHub
parent 91e0d8a557
commit 06d00405ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
agents:
provider: aws
imagePrefix: platform-ingest-logstash-ubuntu-2204-aarch64

View file

@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
steps:
- input: "Test Parameters"
if: build.source != "schedule"

View file

@ -128,4 +128,4 @@ if __name__ == "__main__":
yaml.safe_load(publish_dra_step(branch, workflow_type, depends_on=group_key)),
)
print(yaml.dump(structure, Dumper=yaml.Dumper, sort_keys=False))
print('# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json\n' + yaml.dump(structure, Dumper=yaml.Dumper, sort_keys=False))

View file

@ -309,5 +309,5 @@ if __name__ == "__main__":
"key": slugify_bk_key(group_name),
"steps": group_steps})
print('# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json')
YAML().dump(structure, sys.stdout)

View file

@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
steps:
- input: "Test Parameters"
if: build.source != "schedule"