Commit 6d6f18ad authored by heywon.choi's avatar heywon.choi

test

parent 390054f1
Pipeline #19248 canceled with stages
in 47 seconds
...@@ -19,9 +19,9 @@ build: ...@@ -19,9 +19,9 @@ 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: $TRIGGER_SWLAB_DOCS" \ RESPONSE_STATUS=$(curl --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 "API Response: $RESPONSE_STATUS" echo "Status Response: $RESPONSE_STATUS"
STATUS=$(echo $RESPONSE_STATUS | jq -r '.status') STATUS=$(echo $RESPONSE_STATUS | jq -r '.status')
echo "Current status: $STATUS" echo "Current status: $STATUS"
check_pipeline_status: check_pipeline_status:
...@@ -30,7 +30,7 @@ check_pipeline_status: ...@@ -30,7 +30,7 @@ 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: $SWLAB_DOCS_API" \
"https://gitlab.com/api/v4/projects/951/pipelines/$PIPELINE_ID" | jq -r '.status') "https://gitlab.com/api/v4/projects/951/pipelines/$PIPELINE_ID" | jq -r '.status')
echo "Current status: $STATUS" echo "Current status: $STATUS"
if [ "$STATUS" = "passed" ]; then if [ "$STATUS" = "passed" ]; then
......
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