Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SWLab Docs BXCM for Dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Schedules
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
heywon.choi
SWLab Docs BXCM for Dev
Commits
503f4dd5
Commit
503f4dd5
authored
Jun 04, 2024
by
heywon.choi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
2862d642
Pipeline
#19184
failed with stages
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
.gitlab-ci.yml
.gitlab-ci.yml
+19
-3
No files found.
.gitlab-ci.yml
View file @
503f4dd5
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment