Commit 503f4dd5 authored by heywon.choi's avatar heywon.choi

test

parent 2862d642
Pipeline #19184 failed with stages
in 9 seconds
stages:
- build
- check
- deploy
image:
name: antora/antora:3.1.7
......@@ -7,11 +8,26 @@ build:
stage: build
script:
- >
curl -X POST
PIPELINE_ID=$(curl -X POST
-F token=$TRIGGER_SWLAB_DOCS
-F ref=master
https://gitlab.bwg.co.kr/api/v4/projects/951/trigger/pipeline > trigger_result.json
- cat trigger_result.json
https://gitlab.bwg.co.kr/api/v4/projects/951/trigger/pipeline | jq '.id')
echo "Triggered Pipeline ID: $PIPELINE_ID"
check_pipeline_status:
stage: check
script:
- >
STATUS="running"
while [ "$STATUS" == "running" ]; do
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
echo "swlab-docs project pipeline failed."
exit 1
fi
sleep 10
done
deploy:
stage: deploy
script:
......
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