Skip to content

Commit 4ce0906

Browse files
committed
Try GITLAB_API_TOKEN.
1 parent dfdc510 commit 4ce0906

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ci/input_files/build.yaml.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,12 @@ e2e-status:
301301
# TODO: link to the test results
302302
# do not wait around for the scheduled job to complete
303303
echo "🔄 Waiting for E2E tests to complete..."
304-
# Poll for e2e-test job completion
304+
URL="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${CI_PIPELINE_ID}/bridges"
305+
echo "Fetching E2E job status from: $URL"
305306
while true; do
306307
# Get the e2e-test job status
307-
URL="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${CI_PIPELINE_ID}/bridges"
308-
echo "Fetching E2E job status from: $URL"
309-
RESPONSE=$(curl -s --header "JOB-TOKEN: ${CI_JOB_TOKEN}" "$URL")
308+
#RESPONSE=$(curl -s --header "JOB-TOKEN: ${CI_JOB_TOKEN}" "$URL")
309+
RESPONSE=$(curl -s --header "PRIVATE-TOKEN: ${GITLAB_API_TOKEN}" "$URL")
310310
echo "Response: $RESPONSE"
311311
E2E_JOB_STATUS=$(echo "$RESPONSE" | jq -r '.[] | select(.name=="e2e-test") | .pipeline.status')
312312
echo "E2E job status: $E2E_JOB_STATUS"

0 commit comments

Comments
 (0)