Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Statistical-Genetics
jass
Commits
51e4290b
Commit
51e4290b
authored
May 24, 2022
by
Bryan BRANCOTTE
Browse files
retry when runner fails to start
parent
f5df9791
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
51e4290b
...
...
@@ -8,6 +8,9 @@ test-python:
image
:
python:$PYTHON_VERSION
needs
:
[]
stage
:
test
retry
:
max
:
2
when
:
runner_system_failure
script
:
-
apt-get update && apt install -y libblas-dev liblapack-dev python3-dev
-
pip install -r requirements.txt
...
...
@@ -30,6 +33,9 @@ test-docker-compose:
when
:
delayed
start_in
:
3 minutes
stage
:
test
retry
:
max
:
2
when
:
runner_system_failure
script
:
-
apk update && apk upgrade && apk add jq bash curl
-
./test_docker_compose.sh
...
...
@@ -79,6 +85,9 @@ pages:
.build
:
stage
:
build
image
:
registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:latest
retry
:
max
:
2
when
:
runner_system_failure
services
:
-
registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:dind
script
:
...
...
@@ -155,6 +164,9 @@ build-client-prod:
-
test-python
# - test-backend-image
image
:
harbor.pasteur.fr/kube-system/helm-kubectl:3.4.0
retry
:
max
:
2
when
:
runner_system_failure
script
:
# create if missing the shared pvc to save data
-
kubectl apply -n $NAMESPACE -f chart/pvc-shared-data.yaml
...
...
@@ -226,6 +238,9 @@ delete-dev-deployment:
environment
:
name
:
"
k8sdev-01/jass-dev/${CI_COMMIT_REF_SLUG}"
action
:
stop
retry
:
max
:
2
when
:
runner_system_failure
script
:
-
echo "Removing $CI_COMMIT_REF_SLUG"
-
helm delete -n ${NAMESPACE} ${CI_COMMIT_REF_SLUG}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment