Skip to content
Snippets Groups Projects
Commit 92bf5d2f authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Merge branch 'gitlab-ci-retry' into 'master'

Gitlab ci retry

See merge request !72
parents f5df9791 51e4290b
No related branches found
No related tags found
1 merge request!72Gitlab ci retry
......@@ -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}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment