Skip to content

Commit 0cd868f

Browse files
author
Taniya Mathur
committed
fix: preserve pipeline_execution_id.txt artifact for after_script
refactor: add back useful comment for build ID extraction
1 parent e79ad93 commit 0cd868f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.gitlab-ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ integration_tests:
151151
152152
if [ "$BUILD_ID" != "" ] && [ "$BUILD_ID" != "None" ]; then
153153
echo "CodeBuild ID: $BUILD_ID"
154+
# Extract just the build ID part (after the colon)
154155
LOG_STREAM_NAME="${BUILD_ID#*:}"
155156
echo "Log Stream: $LOG_STREAM_NAME"
156157
echo ""
@@ -162,3 +163,9 @@ integration_tests:
162163
else
163164
echo "No pipeline execution ID found"
164165
fi
166+
167+
artifacts:
168+
when: always
169+
paths:
170+
- pipeline_execution_id.txt
171+
expire_in: 1 week

0 commit comments

Comments
 (0)