Skip to content
Snippets Groups Projects
Commit 9d9ce3ac468d authored by Noé Gaumont's avatar Noé Gaumont :octopus:
Browse files

feat: use the retry command

parent 3227c616982b
No related branches found
No related tags found
1 merge request!29feat: use the retry command
Pipeline #119476 passed
Showing with 56 additions and 1 deletion
--- ---
include: 'templates/template.yml'
variables: variables:
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}" PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}"
build-debian: build-debian:
...@@ -2,8 +4,9 @@ ...@@ -2,8 +4,9 @@
variables: variables:
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}" PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}"
build-debian: build-debian:
extends: .retry
stage: build-debian-package stage: build-debian-package
image: logilab/infra/dockerfiles/buildpackage image: logilab/infra/dockerfiles/buildpackage
tags: tags:
...@@ -22,6 +25,7 @@ ...@@ -22,6 +25,7 @@
- repo - repo
upload-deb-to-heptapod: upload-deb-to-heptapod:
extends: .retry
stage: upload-deb-to-heptapod stage: upload-deb-to-heptapod
image: curlimages/curl:latest image: curlimages/curl:latest
tags: tags:
......
--- ---
include: 'templates/template.yml'
image_build: image_build:
...@@ -2,4 +4,5 @@ ...@@ -2,4 +4,5 @@
image_build: image_build:
extends: .retry
stage: release stage: release
image: image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
...@@ -17,6 +20,7 @@ ...@@ -17,6 +20,7 @@
- if: '$CI_COMMIT_REF_NAME != "branch/default"' - if: '$CI_COMMIT_REF_NAME != "branch/default"'
image_build_latest: image_build_latest:
extends: .retry
stage: release stage: release
image: image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
...@@ -35,6 +39,7 @@ ...@@ -35,6 +39,7 @@
- if: '$CI_COMMIT_REF_NAME == "branch/default"' - if: '$CI_COMMIT_REF_NAME == "branch/default"'
image_build_tag: image_build_tag:
extends: .retry
stage: release stage: release
image: image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
......
--- ---
include: 'templates/create-release-on-heptapod.yml' include:
- 'templates/create-release-on-heptapod.yml'
- 'templates/template.yml'
create-release-on-heptapod: create-release-on-heptapod:
...@@ -4,5 +6,6 @@ ...@@ -4,5 +6,6 @@
create-release-on-heptapod: create-release-on-heptapod:
extends: .retry
script: script:
- | - |
release-cli create --name "Release $CI_COMMIT_TAG" release-cli create --name "Release $CI_COMMIT_TAG"
......
--- ---
include: 'templates/template.yml'
create-release-on-heptapod: create-release-on-heptapod:
...@@ -2,4 +4,5 @@ ...@@ -2,4 +4,5 @@
create-release-on-heptapod: create-release-on-heptapod:
extends: .retry
stage: release stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest image: registry.gitlab.com/gitlab-org/release-cli:latest
tags: tags:
......
--- ---
include: 'templates/template.yml'
black: black:
...@@ -2,4 +4,5 @@ ...@@ -2,4 +4,5 @@
black: black:
extends: .retry
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
except: except:
......
--- ---
include: 'templates/template.yml'
check-manifest: check-manifest:
...@@ -2,4 +4,5 @@ ...@@ -2,4 +4,5 @@
check-manifest: check-manifest:
extends: .retry
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
except: except:
......
--- ---
include: 'templates/template.yml'
flake8: flake8:
...@@ -2,4 +4,5 @@ ...@@ -2,4 +4,5 @@
flake8: flake8:
extends: .retry
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
except: except:
......
--- ---
include: 'templates/template.yml'
mypy: mypy:
...@@ -2,4 +4,5 @@ ...@@ -2,4 +4,5 @@
mypy: mypy:
extends: .retry
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
except: except:
......
--- ---
include: 'templates/template.yml'
safety: safety:
...@@ -2,4 +4,5 @@ ...@@ -2,4 +4,5 @@
safety: safety:
extends: .retry
interruptible: true interruptible: true
allow_failure: true allow_failure: true
stage: lint stage: lint
......
--- ---
include: 'templates/template.yml'
yamllint: yamllint:
...@@ -2,4 +4,5 @@ ...@@ -2,4 +4,5 @@
yamllint: yamllint:
extends: .retry
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
tags: tags:
......
---
.retry:
retry:
max: 2
when:
- runner_system_failure
- stuck_or_timeout_failure
- api_failure
- scheduler_failure
--- ---
include: 'templates/template.yml'
py27: py27:
...@@ -2,4 +4,5 @@ ...@@ -2,4 +4,5 @@
py27: py27:
extends: .retry
interruptible: true interruptible: true
before_script: before_script:
- pip install tox - pip install tox
......
--- ---
include: 'templates/template.yml'
py3: py3:
...@@ -2,4 +4,5 @@ ...@@ -2,4 +4,5 @@
py3: py3:
extends: .retry
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/bullseye-slim-pg13 image: ${CI_REGISTRY}/cubicweb/dockerfiles/bullseye-slim-pg13
stage: tests stage: tests
......
--- ---
include: 'templates/template.yml'
upload-python-package-to-heptapod: upload-python-package-to-heptapod:
...@@ -2,4 +4,5 @@ ...@@ -2,4 +4,5 @@
upload-python-package-to-heptapod: upload-python-package-to-heptapod:
extends: .retry
stage: publish stage: publish
image: python image: python
tags: tags:
......
--- ---
include: 'templates/template.yml'
pypi-publish: pypi-publish:
...@@ -2,4 +4,5 @@ ...@@ -2,4 +4,5 @@
pypi-publish: pypi-publish:
extends: .retry
stage: publish stage: publish
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
tags: tags:
......
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