Skip to content

Commit e79ad93

Browse files
author
Taniya Mathur
committed
refactor: remove pipeline summary artifacts
feat: display all logs directly in GitLab runner console
1 parent 0753dfd commit e79ad93

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -140,26 +140,17 @@ integration_tests:
140140
- python3 scripts/integration_test_deployment.py
141141

142142
after_script:
143-
# Capture CodeBuild logs using the tracked execution ID
143+
# Display CodeBuild logs directly in GitLab runner console
144144
- |
145-
echo "=== IDP Pipeline Results ===" > pipeline_summary.txt
146-
echo "Branch: $CI_COMMIT_REF_NAME" >> pipeline_summary.txt
147-
echo "Commit: $CI_COMMIT_SHA" >> pipeline_summary.txt
148-
echo "Status: $CI_JOB_STATUS" >> pipeline_summary.txt
149-
echo "" >> pipeline_summary.txt
150-
151-
# Get CodeBuild logs using the exact execution ID from Python script
152145
if [ -f "pipeline_execution_id.txt" ]; then
153146
EXECUTION_ID=$(cat pipeline_execution_id.txt)
154-
echo "Pipeline Execution: $EXECUTION_ID" >> pipeline_summary.txt
155-
echo "" >> pipeline_summary.txt
147+
echo "Pipeline Execution: $EXECUTION_ID"
156148
157149
# Get CodeBuild ID from the pipeline execution
158150
BUILD_ID=$(aws codepipeline list-action-executions --pipeline-name ${IDP_PIPELINE_NAME:-idp-sdlc-deploy-pipeline} --filter pipelineExecutionId=$EXECUTION_ID --query 'actionExecutionDetails[?actionName==`BuildAction`].output.executionResult.externalExecutionId' --output text 2>/dev/null || echo "")
159151
160152
if [ "$BUILD_ID" != "" ] && [ "$BUILD_ID" != "None" ]; then
161153
echo "CodeBuild ID: $BUILD_ID"
162-
# Extract just the build ID part (after the colon)
163154
LOG_STREAM_NAME="${BUILD_ID#*:}"
164155
echo "Log Stream: $LOG_STREAM_NAME"
165156
echo ""
@@ -169,12 +160,5 @@ integration_tests:
169160
echo "Could not find CodeBuild execution"
170161
fi
171162
else
172-
echo "No pipeline execution ID found" >> pipeline_summary.txt
163+
echo "No pipeline execution ID found"
173164
fi
174-
175-
artifacts:
176-
when: always
177-
paths:
178-
- pipeline_summary.txt
179-
- pipeline_execution_id.txt
180-
expire_in: 1 week

0 commit comments

Comments
 (0)