Skip to content

Commit c5a44ec

Browse files
committed
More modifications.
1 parent 658ad5e commit c5a44ec

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

ci/input_files/build.yaml.tpl

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ e2e-test:
263263
{{- end }}
264264

265265
e2e-test-status:
266-
stage: test
266+
stage: e2e
267267
image: registry.ddbuild.io/images/docker:20.10-py3
268268
tags: ["arch:amd64"]
269269
timeout: 3h
@@ -273,28 +273,24 @@ e2e-test-status:
273273
echo "Fetching E2E job status from: $URL"
274274
while true; do
275275
RESPONSE=$(curl -s --header "PRIVATE-TOKEN: ${GITLAB_API_TOKEN}" "$URL")
276-
echo "Response from GitLab API: $RESPONSE"
277276
E2E_JOB_STATUS=$(echo "$RESPONSE" | jq -r '.[] | select(.name=="e2e-test") | .pipeline.status')
278-
echo "E2E job status: $E2E_JOB_STATUS"
277+
echo -n "E2E job status: $E2E_JOB_STATUS\t"
279278
if [ "$E2E_JOB_STATUS" == "success" ]; then
280279
echo "✅ E2E tests completed successfully"
281280
exit 0
282281
elif [ "$E2E_JOB_STATUS" == "failed" ]; then
283282
echo "❌ E2E tests failed"
284283
exit 1
285284
elif [ "$E2E_JOB_STATUS" == "running" ]; then
286-
echo -n "⏳ E2E tests are still running"
287-
echo "Retrying in 1 minute..."
288-
sleep 60
285+
echo "⏳ E2E tests are still running, retrying in 1 minute..."
289286
elif [ "$E2E_JOB_STATUS" == "canceled" ]; then
290287
echo "🚫 E2E tests were canceled"
291288
exit 1
292289
elif [ "$E2E_JOB_STATUS" == "skipped" ]; then
293290
echo "⏭️ E2E tests were skipped"
294291
exit 0
295292
else
296-
echo -n "❓ Unknown E2E test status: $E2E_JOB_STATUS"
297-
echo "Retrying in 1 minute..."
298-
sleep 60
293+
echo "❓ Unknown E2E test status: $E2E_JOB_STATUS, retrying in 1 minute..."
299294
fi
295+
sleep 60
300296
done

0 commit comments

Comments
 (0)