Eugenio Paolantonio 330aa29413 gocd: sp/micro-targets: ensure the pipeline exits on failures
This was already implemented in ddd2304022e313eca9b391a043b12ecb9afe3bf7
for SLE GA to TEST, but missing in Micro and on the TEST -> PUBLISH leg
in SLE.

Releasing from TEST to PUBLISH might still fail for various reasons.
If it happens, ensure the pipeline exits early with non-zero exit code.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
2024-03-15 12:19:59 +01:00
..
2022-06-03 15:38:05 +02:00
2024-01-03 17:03:25 +01:00
2024-01-03 17:03:25 +01:00
2022-02-18 18:17:27 +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 plugin locally:

wget https://github.com/tomzo/gocd-yaml-config-plugin/releases/download/0.9.0/yaml-config-plugin-0.9.0.jar
java -jar yaml-config-plugin-0.9.0.jar syntax sp1-stagings.gocd.yaml | grep -q '"valid":true'