gocd: slfo-stagings: Fix syntax error.
This commit is contained in:
parent
f4cbf0b601
commit
e886285d4d
@ -30,7 +30,7 @@ pipelines:
|
|||||||
cd scripts/gocd
|
cd scripts/gocd
|
||||||
status="$(osc -A $STAGING_API api /build/$SLFO_RING_1_PROJECT/standard/x86_64?view=status | grep 'code=' | sed -E 's/^.*code="(.*)".*$/\1/')"
|
status="$(osc -A $STAGING_API api /build/$SLFO_RING_1_PROJECT/standard/x86_64?view=status | grep 'code=' | sed -E 's/^.*code="(.*)".*$/\1/')"
|
||||||
echo $SLFO_RING_1_PROJECT status: "${status}"
|
echo $SLFO_RING_1_PROJECT status: "${status}"
|
||||||
if [ printf '%s' "${status}" | grep -q finished ]; then
|
if printf '%s' "${status}" | grep -q finished; then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -31,7 +31,7 @@ pipelines:
|
|||||||
cd scripts/gocd
|
cd scripts/gocd
|
||||||
status="$(osc -A $STAGING_API api /build/$SLFO_RING_1_PROJECT/standard/x86_64?view=status | grep 'code=' | sed -E 's/^.*code="(.*)".*$/\1/')"
|
status="$(osc -A $STAGING_API api /build/$SLFO_RING_1_PROJECT/standard/x86_64?view=status | grep 'code=' | sed -E 's/^.*code="(.*)".*$/\1/')"
|
||||||
echo $SLFO_RING_1_PROJECT status: "${status}"
|
echo $SLFO_RING_1_PROJECT status: "${status}"
|
||||||
if [ printf '%s' "${status}" | grep -q finished ]; then
|
if printf '%s' "${status}" | grep -q finished; then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user