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
780c1974
Commit
780c1974
authored
Jun 05, 2024
by
heywon.choi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
b0bc239a
Pipeline
#19190
failed with stages
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
.gitlab-ci.yml
.gitlab-ci.yml
+11
-4
No files found.
.gitlab-ci.yml
View file @
780c1974
...
...
@@ -8,11 +8,18 @@ build:
stage
:
build
script
:
-
>
PIPELINE_ID
=$(curl -X POST
RESPONSE
=$(curl -X POST
-F token=$TRIGGER_SWLAB_DOCS
-F ref=master
https://gitlab.bwg.co.kr/api/v4/projects/951/trigger/pipeline | jq '.id')
echo "Triggered Pipeline ID: $PIPELINE_ID"
https://gitlab.bwg.co.kr/api/v4/projects/951/trigger/pipeline)
echo "API Response: $RESPONSE"
PIPELINE_ID=$(echo $RESPONSE | jq -r '.[0].id')
echo "Pipeline ID: $PIPELINE_ID"
if [ "$PIPELINE_ID" == "null" ] || [ -z "$PIPELINE_ID" ]; then
echo "Failed to get Pipeline ID"
exit 1
fi
echo "Pipeline ID: $PIPELINE_ID"
check_pipeline_status
:
stage
:
check
script
:
...
...
@@ -20,7 +27,7 @@ check_pipeline_status:
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')
"https://gitlab.com/api/v4/projects/951/pipelines/$PIPELINE_ID" | jq -r '.
[0].
status')
echo "Current status: $STATUS"
if [ "$STATUS" = "failed" ]; then
echo "swlab-docs project pipeline failed."
...
...
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