YAML
Steps and Stages Pipeline use "YAML Ain’t Markup Language" (YAML) which is a data serialization language designed to be human friendly. Vela accepts YAML files with either a .yml
or .yaml
extension. If you'd like to learn more about the YAML language, we recommend you see, "Learn YAML in five minutes.".
The design goals for YAML are, in decreasing priority:
- YAML is easily readable by humans.
- YAML data is portable between programming languages.
- YAML matches the native data structures of agile languages.
- YAML has a consistent model to support generic tools.
- YAML supports one-pass processing.
- YAML is expressive and extensible.
- YAML is easy to implement and use.
See YAML design goals from spec.
Terminology Check
Whether you are a YAML expert or a novice, here is some quick terminology that you should be aware of:
You can get feedback directly on your .vela.yml
or .vela.yaml
pipelines in your IDE with the available JSON Schema.
Document
A file ending with .yml
or .yaml
that contains contents following the YAML spec is called a document, see YAML 1.2 spec for full details.
Example:
---
key: value
Keys
A YAML document is compose of one to many key-value pairs where the value is evaluated to an explicit type (Int, Float, string, bool, etc), see YAML 1.2 spec for full details.
Example:
---
# an integer
canonical: 12345
# a float
canonical: 3.14159e+3
# a string
canonical: "Hello, World"
# a bool
canonical: true