Pass build timeout as CI variable
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Description
I manually start docker containers for test because it is have some troubles use private repositories in services [https://gitlab.com/gitlab-org/gitlab-ce/issues/19275], [https://gitlab.com/gitlab-org/gitlab-ce/issues/22305].
There is no timeout option in docker run command but as always several workarounds.
Unfortunately I can't even guarantied run after script after job timeout.
So my intention as workaround run such containers like:
(sleep 3500 ; sudo docker stop test_container_${CI_BUILD_REF})& docker run --rm -i --name test_container_${CI_BUILD_REF} ...
Problem there what I should hardcode amount of sleep seconds because does not known how it configured for current project.
It will be very helpful see there variable like CI_BUILD_TIMEOUT in seconds.
Edited by 🤖 GitLab Bot 🤖