Commit 39f2df1b authored by heywon.choi's avatar heywon.choi

test

parent a63f41a2
Pipeline #19197 failed with stages
in 9 seconds
......@@ -19,7 +19,6 @@ build:
echo "Failed to get Pipeline ID"
exit 1
fi
echo "Pipeline ID: $PIPELINE_ID"
check_pipeline_status:
stage: check
script:
......@@ -29,7 +28,11 @@ check_pipeline_status:
STATUS=$(curl --header "PRIVATE-TOKEN: $TRIGGER_SWLAB_DOCS" \
"https://gitlab.com/api/v4/projects/951/pipelines/$PIPELINE_ID" | jq -r '.status')
echo "Current status: $STATUS"
if [ "$STATUS" = "failed" ]; then
if [ "$STATUS" = "passed" ]; then
echo "swlab-docs project pipeline passed."
break
fi
elif [ "$STATUS" = "failed" ]; then
echo "swlab-docs project pipeline failed."
exit 1
fi
......
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