This section describes how to add steps
in the YAML file.
- Under a valid section, create a dictionary entry named condition.
- The condition should be defined as a
Python code snippet, represented as a YAML string, which determines the
section's return values based on the variables exported from the build flow:
platform,proc, andvariant. - The
conditioncan be a multi-line python conditional code. - The python code must contain a variable with the YAML section name.
- Ensure the condition:
- Uses input parameters
proc,platform, andvariant. - Modifies the variable (having the same name as YAML section's name) to produce the desired output.
- Is syntactically correct Python code.
- Contains proper indentation (2 spaces per level, as per YAML standards).
- Uses input parameters
- Validate YAML Syntax using a YAML linter or validator to check for syntax errors.