Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jass
Manage
Activity
Members
Labels
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Statistical-Genetics
jass
Commits
51e4290b
Commit
51e4290b
authored
2 years ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
retry when runner fails to start
parent
f5df9791
No related branches found
No related tags found
1 merge request
!72
Gitlab ci retry
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-0
15 additions, 0 deletions
.gitlab-ci.yml
with
15 additions
and
0 deletions
.gitlab-ci.yml
+
15
−
0
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}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment