Eugenio Paolantonio 41c61c3ebf slfo-stagings: add a timeout for Build.product, and do not run if repo is missing
Ensure that the 'product' repo is configured in the project meta.

Unfortunately, since we're checking in the configuration of the staging
itself, rather than the parent project's, there are increased changes of
some human/tooling error that might drop the repository from the
configuration. This will make the job run an endless loop.

Also, add a timeout for 180 minutes for the job. It is enough for
the product build process, and if it isn't, it's better to cancel
and have human eyes looking at it.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
2024-06-17 16:45:09 +02: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
2024-06-04 11:18:07 -03:00
2024-05-07 21:52:32 +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'