Before adding a pipeline source, you have the option of validating your pipelines, resources, and values YAMLs and then committing it to the SCM. This enables you to get instant feedback on pipeline sync errors. The YAML validator validates your YAML for both semantic and syntactic errors.
To validate your YAML:
Click Validate YAML.
Either enter the YAML and paste the YAML contents in the Pipelines YAML and Resources YAML fields. If you have a values YAML, enter the YAML contents in the Values YAML field. For more information about the Pipelines DSL, see Defining a Pipeline.
As the YAML content is entered, it is validated and syntactic errors, if any, are displayed.
After fixing all the syntactic errors, click Validate to validate the YAML for semantic errors.