From acb6b3ee37ff05b80556702e1862ade982e83f4a Mon Sep 17 00:00:00 2001 From: Eugenio Paolantonio Date: Tue, 12 Nov 2024 14:42:28 +0100 Subject: [PATCH] gocd: slfo-stagings: properly escape comments Follow up to 4c1d7be5d10457fa4a1545cebef79275d09345cf Signed-off-by: Eugenio Paolantonio --- gocd/slfo-stagings.gocd.yaml | 44 ++++++++++++++++---------------- gocd/slfo-stagings.gocd.yaml.erb | 4 +-- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/gocd/slfo-stagings.gocd.yaml b/gocd/slfo-stagings.gocd.yaml index daa834099..5d15bbaec 100644 --- a/gocd/slfo-stagings.gocd.yaml +++ b/gocd/slfo-stagings.gocd.yaml @@ -1163,7 +1163,7 @@ pipelines: minutes=1 osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build" export PYTHONPATH=$PWD/scripts - # Let the scheduler warm up first + ## Let the scheduler warm up first sleep 60 while osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -E 'statuscount code="(blocked|scheduled|building)"'; do if [ ${minutes} -gt 180 ]; then @@ -1173,7 +1173,7 @@ pipelines: sleep 60 minutes=$(expr $minutes + 1) done - # Always fail on broken/failed products + ## Always fail on broken/failed products if osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -qE 'statuscount code="(broken|failed)"'; then echo "Some products failed to build, exiting..." >&2 exit 1 @@ -1257,7 +1257,7 @@ pipelines: minutes=1 osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build" export PYTHONPATH=$PWD/scripts - # Let the scheduler warm up first + ## Let the scheduler warm up first sleep 60 while osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -E 'statuscount code="(blocked|scheduled|building)"'; do if [ ${minutes} -gt 180 ]; then @@ -1267,7 +1267,7 @@ pipelines: sleep 60 minutes=$(expr $minutes + 1) done - # Always fail on broken/failed products + ## Always fail on broken/failed products if osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -qE 'statuscount code="(broken|failed)"'; then echo "Some products failed to build, exiting..." >&2 exit 1 @@ -1351,7 +1351,7 @@ pipelines: minutes=1 osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build" export PYTHONPATH=$PWD/scripts - # Let the scheduler warm up first + ## Let the scheduler warm up first sleep 60 while osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -E 'statuscount code="(blocked|scheduled|building)"'; do if [ ${minutes} -gt 180 ]; then @@ -1361,7 +1361,7 @@ pipelines: sleep 60 minutes=$(expr $minutes + 1) done - # Always fail on broken/failed products + ## Always fail on broken/failed products if osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -qE 'statuscount code="(broken|failed)"'; then echo "Some products failed to build, exiting..." >&2 exit 1 @@ -1445,7 +1445,7 @@ pipelines: minutes=1 osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build" export PYTHONPATH=$PWD/scripts - # Let the scheduler warm up first + ## Let the scheduler warm up first sleep 60 while osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -E 'statuscount code="(blocked|scheduled|building)"'; do if [ ${minutes} -gt 180 ]; then @@ -1455,7 +1455,7 @@ pipelines: sleep 60 minutes=$(expr $minutes + 1) done - # Always fail on broken/failed products + ## Always fail on broken/failed products if osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -qE 'statuscount code="(broken|failed)"'; then echo "Some products failed to build, exiting..." >&2 exit 1 @@ -1539,7 +1539,7 @@ pipelines: minutes=1 osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build" export PYTHONPATH=$PWD/scripts - # Let the scheduler warm up first + ## Let the scheduler warm up first sleep 60 while osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -E 'statuscount code="(blocked|scheduled|building)"'; do if [ ${minutes} -gt 180 ]; then @@ -1549,7 +1549,7 @@ pipelines: sleep 60 minutes=$(expr $minutes + 1) done - # Always fail on broken/failed products + ## Always fail on broken/failed products if osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -qE 'statuscount code="(broken|failed)"'; then echo "Some products failed to build, exiting..." >&2 exit 1 @@ -1633,7 +1633,7 @@ pipelines: minutes=1 osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build" export PYTHONPATH=$PWD/scripts - # Let the scheduler warm up first + ## Let the scheduler warm up first sleep 60 while osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -E 'statuscount code="(blocked|scheduled|building)"'; do if [ ${minutes} -gt 180 ]; then @@ -1643,7 +1643,7 @@ pipelines: sleep 60 minutes=$(expr $minutes + 1) done - # Always fail on broken/failed products + ## Always fail on broken/failed products if osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -qE 'statuscount code="(broken|failed)"'; then echo "Some products failed to build, exiting..." >&2 exit 1 @@ -1727,7 +1727,7 @@ pipelines: minutes=1 osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build" export PYTHONPATH=$PWD/scripts - # Let the scheduler warm up first + ## Let the scheduler warm up first sleep 60 while osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -E 'statuscount code="(blocked|scheduled|building)"'; do if [ ${minutes} -gt 180 ]; then @@ -1737,7 +1737,7 @@ pipelines: sleep 60 minutes=$(expr $minutes + 1) done - # Always fail on broken/failed products + ## Always fail on broken/failed products if osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -qE 'statuscount code="(broken|failed)"'; then echo "Some products failed to build, exiting..." >&2 exit 1 @@ -1821,7 +1821,7 @@ pipelines: minutes=1 osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build" export PYTHONPATH=$PWD/scripts - # Let the scheduler warm up first + ## Let the scheduler warm up first sleep 60 while osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -E 'statuscount code="(blocked|scheduled|building)"'; do if [ ${minutes} -gt 180 ]; then @@ -1831,7 +1831,7 @@ pipelines: sleep 60 minutes=$(expr $minutes + 1) done - # Always fail on broken/failed products + ## Always fail on broken/failed products if osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -qE 'statuscount code="(broken|failed)"'; then echo "Some products failed to build, exiting..." >&2 exit 1 @@ -1915,7 +1915,7 @@ pipelines: minutes=1 osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build" export PYTHONPATH=$PWD/scripts - # Let the scheduler warm up first + ## Let the scheduler warm up first sleep 60 while osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -E 'statuscount code="(blocked|scheduled|building)"'; do if [ ${minutes} -gt 180 ]; then @@ -1925,7 +1925,7 @@ pipelines: sleep 60 minutes=$(expr $minutes + 1) done - # Always fail on broken/failed products + ## Always fail on broken/failed products if osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -qE 'statuscount code="(broken|failed)"'; then echo "Some products failed to build, exiting..." >&2 exit 1 @@ -2009,7 +2009,7 @@ pipelines: minutes=1 osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build" export PYTHONPATH=$PWD/scripts - # Let the scheduler warm up first + ## Let the scheduler warm up first sleep 60 while osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -E 'statuscount code="(blocked|scheduled|building)"'; do if [ ${minutes} -gt 180 ]; then @@ -2019,7 +2019,7 @@ pipelines: sleep 60 minutes=$(expr $minutes + 1) done - # Always fail on broken/failed products + ## Always fail on broken/failed products if osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -qE 'statuscount code="(broken|failed)"'; then echo "Some products failed to build, exiting..." >&2 exit 1 @@ -2103,7 +2103,7 @@ pipelines: minutes=1 osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build" export PYTHONPATH=$PWD/scripts - # Let the scheduler warm up first + ## Let the scheduler warm up first sleep 60 while osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -E 'statuscount code="(blocked|scheduled|building)"'; do if [ ${minutes} -gt 180 ]; then @@ -2113,7 +2113,7 @@ pipelines: sleep 60 minutes=$(expr $minutes + 1) done - # Always fail on broken/failed products + ## Always fail on broken/failed products if osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -qE 'statuscount code="(broken|failed)"'; then echo "Some products failed to build, exiting..." >&2 exit 1 diff --git a/gocd/slfo-stagings.gocd.yaml.erb b/gocd/slfo-stagings.gocd.yaml.erb index 606a95e34..5684b9664 100644 --- a/gocd/slfo-stagings.gocd.yaml.erb +++ b/gocd/slfo-stagings.gocd.yaml.erb @@ -276,7 +276,7 @@ pipelines: minutes=1 osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build" export PYTHONPATH=$PWD/scripts - # Let the scheduler warm up first + ## Let the scheduler warm up first sleep 60 while osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -E 'statuscount code="(blocked|scheduled|building)"'; do if [ ${minutes} -gt 180 ]; then @@ -286,7 +286,7 @@ pipelines: sleep 60 minutes=$(expr $minutes + 1) done - # Always fail on broken/failed products + ## Always fail on broken/failed products if osc -A $STAGING_API api -X GET "/build/$STAGING_PROJECT/_result?view=summary&repository=product&arch=local" | grep -qE 'statuscount code="(broken|failed)"'; then echo "Some products failed to build, exiting..." >&2 exit 1