2019-03-28 11:32:49 +01:00
|
|
|
How to validate the yaml
|
|
|
|
========================
|
|
|
|
|
|
|
|
For some reason, valid yaml is not supported - the indentation required
|
|
|
|
is rather wild. But to check the syntax before commit, you can use the
|
2019-05-28 19:47:33 +02:00
|
|
|
plugin locally:
|
2019-03-28 11:32:49 +01:00
|
|
|
|
2019-05-28 19:47:33 +02:00
|
|
|
```
|
2019-03-28 11:32:49 +01:00
|
|
|
wget https://github.com/tomzo/gocd-yaml-config-plugin/releases/download/0.9.0/yaml-config-plugin-0.9.0.jar
|
2019-05-28 19:47:33 +02:00
|
|
|
java -jar yaml-config-plugin-0.9.0.jar syntax sp1-stagings.gocd.yaml | grep -q '"valid":true'
|
|
|
|
```
|