How can I validate GoCD configuration before applying it

HOW TO -️ October 18, 2021

We have a GoCD installation where we like to keep the pipeline configuration XML files (cruise-config.xml) in a separate git repository, and install it (preferably via a pipeline and automatically) to the GoCD server whenever it is changed.

However we couldn't find an easy way to validate the XML config file before sending it off to GoCD, and obviously we do't want to install invalid configs, as that would break our pipelines. Are there any tools, or utilities that help us with validating the config file?

Answer

If nonne exist, I'm afraid the solution would be to write a linting program for this configuration file

Initializing...