Eugenio Paolantonio 4c1d7be5d1 gocd: slfo-stagings: fail on broken/failed products
Rather than using verify-repo-built-successful.py, check with
the API directly whether the product is blocked, scheduled or
building.

Since it might happen for a product being broken/failed (even after
a successful pkglistgen run), just fail in that case.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
2024-11-12 12:32:32 +01:00
..
2022-06-03 15:38:05 +02:00
2024-10-01 11:56:35 +02:00
2024-05-07 21:52:32 +02: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'