Commit a63f41a2 authored by heywon.choi's avatar heywon.choi

test

parent c6f46f33
Pipeline #19195 passed with stages
in 27 seconds
...@@ -13,7 +13,7 @@ build: ...@@ -13,7 +13,7 @@ build:
-F ref=master \ -F ref=master \
"https://gitlab.bwg.co.kr/api/v4/projects/951/trigger/pipeline" ) "https://gitlab.bwg.co.kr/api/v4/projects/951/trigger/pipeline" )
echo "API Response: $RESPONSE" echo "API Response: $RESPONSE"
PIPELINE_ID=$(echo $RESPONSE | jq -r '.[0].id') PIPELINE_ID=$(echo $RESPONSE | jq -r '.id')
echo "Pipeline ID: $PIPELINE_ID" echo "Pipeline ID: $PIPELINE_ID"
if [ "$PIPELINE_ID" == "null" ] || [ -z "$PIPELINE_ID" ]; then if [ "$PIPELINE_ID" == "null" ] || [ -z "$PIPELINE_ID" ]; then
echo "Failed to get Pipeline ID" echo "Failed to get Pipeline ID"
...@@ -26,8 +26,8 @@ check_pipeline_status: ...@@ -26,8 +26,8 @@ check_pipeline_status:
- | - |
STATUS="running" STATUS="running"
while [ "$STATUS" = "running" ]; do while [ "$STATUS" = "running" ]; do
STATUS=$(curl --header "PRIVATE-TOKEN: $TRIGGER_SWLAB_DOCS" STATUS=$(curl --header "PRIVATE-TOKEN: $TRIGGER_SWLAB_DOCS" \
"https://gitlab.com/api/v4/projects/951/pipelines/$PIPELINE_ID" | jq -r '.[0].status') "https://gitlab.com/api/v4/projects/951/pipelines/$PIPELINE_ID" | jq -r '.status')
echo "Current status: $STATUS" echo "Current status: $STATUS"
if [ "$STATUS" = "failed" ]; then if [ "$STATUS" = "failed" ]; then
echo "swlab-docs project pipeline failed." echo "swlab-docs project pipeline failed."
......
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