File tree Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -263,27 +263,10 @@ e2e-test:
263
263
{ {- end } }
264
264
265
265
e2e-test-status:
266
- stage: e2e
266
+ stage: test
267
267
image: registry.ddbuild.io/images/docker:20.10-py3
268
268
tags: ["arch:amd64"]
269
- needs:
270
- - e2e-test
271
269
script:
272
- - apk add --no-cache curl jq
273
- - |
274
- GITLAB_API_TOKEN=$(aws ssm get-parameter --region us-east-1 --name "ci.${ CI_PROJECT_NAME} .serverless-e2e-gitlab-token" --with-decryption --query "Parameter.Value" --out text)
275
- URL="${ CI_API_V4_URL} /projects/${ CI_PROJECT_ID} /pipelines/${ CI_PIPELINE_ID} /bridges"
276
- echo "Fetching E2E job status from: $URL"
277
- RESPONSE=$(curl -s --header "PRIVATE-TOKEN: ${ GITLAB_API_TOKEN} " "$URL")
278
- E2E_JOB_STATUS=$(echo "$RESPONSE" | jq -r '.[] | select(.name=="e2e-test") | .pipeline.status')
279
- echo "E2E job status: $E2E_JOB_STATUS"
280
- if [ "$E2E_JOB_STATUS" == "success" ]; then
281
- echo "✅ E2E tests completed successfully"
282
- exit 0
283
- elif [ "$E2E_JOB_STATUS" == "failed" ]; then
284
- echo "❌ E2E tests failed"
285
- exit 1
286
- else
287
- echo "❓ Unknown E2E test status: $E2E_JOB_STATUS"
288
- exit 1
289
- fi
270
+ - git clone -b rey.abolofia/status-check --single-branch https://gitlab-ci-token:${ CI_JOB_TOKEN} @gitlab.ddbuild.io/DataDog/serverless-e2e-tests
271
+ - cd ./serverless-e2e-tests
272
+ - ./scripts/check_e2e_status.sh
You can’t perform that action at this time.
0 commit comments