Is your feature request related to a problem? Please describe.
Sometimes our pipeline contains bad yaml that means the pipeline won't run or result in the way we expect. The agent will log warnings relating to parse issues but it will continue to upload the pipeline.
Describe the solution you'd like
Add an option to configure the agent to bail out on any warnings or errors returned from parsing.
Describe alternatives you've considered
We've tried no real alternatives at this point although we did suggest adding some sort of separate pipeline yaml linting, but not exactly sure what that could look like or if it's the best solution.
Additional context