Commit 09cedf38 authored by heywon.choi's avatar heywon.choi

test

parent 6d6f18ad
Pipeline #19250 canceled with stages
in 3 minutes and 26 seconds
...@@ -19,7 +19,7 @@ build: ...@@ -19,7 +19,7 @@ build:
echo "Failed to get Pipeline ID" echo "Failed to get Pipeline ID"
exit 1 exit 1
fi fi
RESPONSE_STATUS=$(curl --header "PRIVATE-TOKEN: $SWLAB_DOCS_API" \ RESPONSE_STATUS=$(curl -v --header "PRIVATE-TOKEN: $SWLAB_DOCS_API" \
"https://gitlab.com/api/v4/projects/951/pipelines/$PIPELINE_ID" ) "https://gitlab.com/api/v4/projects/951/pipelines/$PIPELINE_ID" )
echo "Status Response: $RESPONSE_STATUS" echo "Status Response: $RESPONSE_STATUS"
STATUS=$(echo $RESPONSE_STATUS | jq -r '.status') STATUS=$(echo $RESPONSE_STATUS | jq -r '.status')
...@@ -28,6 +28,10 @@ check_pipeline_status: ...@@ -28,6 +28,10 @@ check_pipeline_status:
stage: check stage: check
script: script:
- | - |
if [ "$STATUS" = null ]; then
echo "Current status: $STATUS"
exit 1
fi
STATUS="running" STATUS="running"
while [ "$STATUS" = "running" ]; do while [ "$STATUS" = "running" ]; do
STATUS=$(curl --header "PRIVATE-TOKEN: $SWLAB_DOCS_API" \ STATUS=$(curl --header "PRIVATE-TOKEN: $SWLAB_DOCS_API" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment