From d735bd9ecf587c58614b388224d46fca4b75f3d6 Mon Sep 17 00:00:00 2001 From: Gustavo Yokoyama Ribeiro Date: Tue, 16 Jul 2024 08:24:28 -0300 Subject: [PATCH] Monitor the release of Mimimal-VM images in SLES16 --- gocd/sles.target.gocd.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gocd/sles.target.gocd.yaml b/gocd/sles.target.gocd.yaml index b9b76a364..5d5f0d4d7 100644 --- a/gocd/sles.target.gocd.yaml +++ b/gocd/sles.target.gocd.yaml @@ -47,6 +47,11 @@ pipelines: sleep 600 done osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Products:SLES:16.0:TEST/_result?view=summary&repository=product" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED + while (osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Products:SLES:16.0:TEST/_result?view=summary&repository=images" | grep "result project" | grep -v 'code="published" state="published">'); do + echo PENDING + sleep 600 + done + osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Products:SLES:16.0:TEST/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED - Release.Images.To.Publish: approval: manual @@ -66,3 +71,8 @@ pipelines: sleep 600 done osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Products:SLES:16.0:PUBLISH/_result?view=summary&repository=product" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED + while (osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Products:SLES:16.0:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep -v 'code="published" state="published">'); do + echo PENDING + sleep 600 + done + osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Products:SLES:16.0:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED