Skip to content
Snippets Groups Projects
Commit f8d71f62 authored by s80984's avatar s80984
Browse files

Update Test Job

parent 72545b17
No related branches found
No related tags found
No related merge requests found
Pipeline #14151 failed
......@@ -78,14 +78,13 @@ job_test-image:
# --publish "${outerPort}:8080"
# --name "${CI_PROJECT_ID}-${CI_PIPELINE_IID}"
# "${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}"
# - |
# attempts=1
# while (wget "http://containerhost:${outerPort}" 2>&1 || true) | grep 'Connection refused' && [ "${attempts}" -lt 5 ]; do
# sleep 1 && echo sleeping
# attempts=$((attempts + 1))
# done
# - (wget --no-cache --quiet --output-document - "http://containerhost:${outerPort}/health" | docker run --rm --interactive stedolan/jq -e '.status == "pass"')
# || (echo 'Test failed' && exit 1)
- |
attempts=1
while (wget "http://containerhost:${outerPort}" 2>&1 || true) | grep 'Connection refused' && [ "${attempts}" -lt 5 ]; do
sleep 1 && echo sleeping
attempts=$((attempts + 1))
done
- (echo 'process.exit called with "1"' && exit 1)
after_script:
# NOTE: clean up after test run (stop and remove container)
# - docker rm --force "${CI_PROJECT_ID}-${CI_PIPELINE_IID}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment