mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
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:
parent
91e0d8a557
commit
06d00405ca
5 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue