We have a lot of Jenkins jobs that fail due to ill-formed yaml.
Unfortunately, These often throw useless Java exceptions that are 
meaningless.

I would like to invoke a yaml checker/sanitizer on that yaml, BEFORE 
Jenkins starts parsing it.

Does anyone know if a Plugin exists, or if there is another way to validate 
YAML before it is parsed?
I've noticed that copying and pasting yaml from a text file into the 
Pipeline file can also cause the yaml to be ill-formed, so
we need to catch that and display a useful error message, instead of a 
useless Java exception.

I can't believe that Jenkins is so fragile that it crashes due to bad yaml.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/06074b3c-d451-4f83-aed3-19e7e69dd751%40googlegroups.com.

Reply via email to