feat(interruptible): Make jobs that can be cancelled safely interruptible
https://docs.gitlab.com/ee/ci/yaml/index.html#interruptible
This commit is contained in:
parent
b4b8079a6d
commit
ea61a8f8f7
@ -1,6 +1,7 @@
|
|||||||
.ansible_lint:
|
.ansible_lint:
|
||||||
image: quay.io/ansible/toolset:3.5.0
|
image: quay.io/ansible/toolset:3.5.0
|
||||||
stage: lint
|
stage: lint
|
||||||
|
interruptible: true
|
||||||
variables:
|
variables:
|
||||||
EXTRA_ARGS: ""
|
EXTRA_ARGS: ""
|
||||||
script:
|
script:
|
||||||
@ -11,6 +12,7 @@
|
|||||||
extends: .ansible_playbook_run
|
extends: .ansible_playbook_run
|
||||||
rules:
|
rules:
|
||||||
- when: always
|
- when: always
|
||||||
|
interruptible: true
|
||||||
script:
|
script:
|
||||||
- ansible --version
|
- ansible --version
|
||||||
- ansible-playbook -i $INVENTORY_PATH $PLAYBOOK_PATH $EXTRA_ARGS --check
|
- ansible-playbook -i $INVENTORY_PATH $PLAYBOOK_PATH $EXTRA_ARGS --check
|
||||||
|
|||||||
@ -59,6 +59,7 @@
|
|||||||
.docker-compose-validate:
|
.docker-compose-validate:
|
||||||
image: docker:20.10.16-alpine3.15
|
image: docker:20.10.16-alpine3.15
|
||||||
stage: verify
|
stage: verify
|
||||||
|
interruptible: true
|
||||||
variables:
|
variables:
|
||||||
DOCKER_COMPOSE_VERSION: "v2.7.0"
|
DOCKER_COMPOSE_VERSION: "v2.7.0"
|
||||||
DOCKER_COMPOSE: "$CI_PROJECT_DIR/docker-compose"
|
DOCKER_COMPOSE: "$CI_PROJECT_DIR/docker-compose"
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
.container-build-common:
|
.container-build-common:
|
||||||
stage: build
|
stage: build
|
||||||
|
interruptible: true
|
||||||
variables:
|
variables:
|
||||||
CONTEXT_LOCATION: $CI_PROJECT_DIR
|
CONTEXT_LOCATION: $CI_PROJECT_DIR
|
||||||
DOCKER_REGISTRY: $CI_REGISTRY_IMAGE
|
DOCKER_REGISTRY: $CI_REGISTRY_IMAGE
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
name: docker.io/aquasec/trivy:0.31.3
|
name: docker.io/aquasec/trivy:0.31.3
|
||||||
entrypoint: [ "" ]
|
entrypoint: [ "" ]
|
||||||
stage: verify
|
stage: verify
|
||||||
|
interruptible: true
|
||||||
variables:
|
variables:
|
||||||
IMAGE_PATH: $CI_PROJECT_DIR/image.tar
|
IMAGE_PATH: $CI_PROJECT_DIR/image.tar
|
||||||
EXITCODE: 1
|
EXITCODE: 1
|
||||||
|
|||||||
@ -15,6 +15,7 @@
|
|||||||
.documentation-check-confluence-validity:
|
.documentation-check-confluence-validity:
|
||||||
extends: .documentation-tool-common
|
extends: .documentation-tool-common
|
||||||
stage: verify
|
stage: verify
|
||||||
|
interruptible: true
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
OUTPUT_DIR: merge_requests
|
OUTPUT_DIR: merge_requests
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
.gradle-build:
|
.gradle-build:
|
||||||
stage: build
|
stage: build
|
||||||
|
interruptible: true
|
||||||
image: $GRADLE_IMAGE
|
image: $GRADLE_IMAGE
|
||||||
before_script:
|
before_script:
|
||||||
- >
|
- >
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
.gradle-licence-bom:
|
.gradle-licence-bom:
|
||||||
image: $GRADLE_IMAGE
|
image: $GRADLE_IMAGE
|
||||||
stage: build
|
stage: build
|
||||||
|
interruptible: true
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ "$BACKEND_DIR" != "" ]; then
|
if [ "$BACKEND_DIR" != "" ]; then
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
.gradle-verify:
|
.gradle-verify:
|
||||||
image: $GRADLE_IMAGE
|
image: $GRADLE_IMAGE
|
||||||
stage: verify
|
stage: verify
|
||||||
|
interruptible: true
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ "$BACKEND_DIR" != "" ]; then
|
if [ "$BACKEND_DIR" != "" ]; then
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
.database-diff-common:
|
.database-diff-common:
|
||||||
stage: verify
|
stage: verify
|
||||||
|
interruptible: true
|
||||||
artifacts:
|
artifacts:
|
||||||
when: on_failure
|
when: on_failure
|
||||||
expire_in: 2 weeks
|
expire_in: 2 weeks
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
.maven-build:
|
.maven-build:
|
||||||
stage: build
|
stage: build
|
||||||
|
interruptible: true
|
||||||
image: $MAVEN_IMAGE
|
image: $MAVEN_IMAGE
|
||||||
before_script:
|
before_script:
|
||||||
- >
|
- >
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
.maven-dependencies:
|
.maven-dependencies:
|
||||||
stage: dependencies
|
stage: dependencies
|
||||||
|
interruptible: true
|
||||||
image: $MAVEN_IMAGE
|
image: $MAVEN_IMAGE
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
.maven-licence-bom:
|
.maven-licence-bom:
|
||||||
image: $MAVEN_IMAGE
|
image: $MAVEN_IMAGE
|
||||||
stage: build
|
stage: build
|
||||||
|
interruptible: true
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ "$BACKEND_DIR" != "" ]; then
|
if [ "$BACKEND_DIR" != "" ]; then
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
.maven-verify:
|
.maven-verify:
|
||||||
image: $MAVEN_IMAGE
|
image: $MAVEN_IMAGE
|
||||||
stage: verify
|
stage: verify
|
||||||
|
interruptible: true
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ "$BACKEND_DIR" != "" ]; then
|
if [ "$BACKEND_DIR" != "" ]; then
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
.license-asciidoc:
|
.license-asciidoc:
|
||||||
image: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-license-tools
|
image: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-license-tools
|
||||||
stage: verify
|
stage: verify
|
||||||
|
interruptible: true
|
||||||
variables:
|
variables:
|
||||||
BOM_FILE: bom.json
|
BOM_FILE: bom.json
|
||||||
ALLOWED_LICENSES: valid-licenses.txt
|
ALLOWED_LICENSES: valid-licenses.txt
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
.npm-build:
|
.npm-build:
|
||||||
image: $NODE_IMAGE
|
image: $NODE_IMAGE
|
||||||
stage: build
|
stage: build
|
||||||
|
interruptible: true
|
||||||
variables:
|
variables:
|
||||||
FRONTEND_BUILD_DIR: '**/dist'
|
FRONTEND_BUILD_DIR: '**/dist'
|
||||||
script:
|
script:
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
.npm-dependencies:
|
.npm-dependencies:
|
||||||
image: $NODE_IMAGE
|
image: $NODE_IMAGE
|
||||||
stage: dependencies
|
stage: dependencies
|
||||||
|
interruptible: true
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ "$FRONTEND_DIR" != "" ]; then
|
if [ "$FRONTEND_DIR" != "" ]; then
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
.npm-e2e:
|
.npm-e2e:
|
||||||
image: $NODE_E2E_IMAGE
|
image: $NODE_E2E_IMAGE
|
||||||
stage: verify
|
stage: verify
|
||||||
|
interruptible: true
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ "$FRONTEND_DIR" != "" ]; then
|
if [ "$FRONTEND_DIR" != "" ]; then
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
.npm-lint:
|
.npm-lint:
|
||||||
image: $NODE_IMAGE
|
image: $NODE_IMAGE
|
||||||
stage: verify
|
stage: verify
|
||||||
|
interruptible: true
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ "$FRONTEND_DIR" != "" ]; then
|
if [ "$FRONTEND_DIR" != "" ]; then
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
.npm-verify:
|
.npm-verify:
|
||||||
image: $NODE_IMAGE
|
image: $NODE_IMAGE
|
||||||
stage: verify
|
stage: verify
|
||||||
|
interruptible: true
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ "$FRONTEND_DIR" != "" ]; then
|
if [ "$FRONTEND_DIR" != "" ]; then
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
name: docker.io/aquasec/trivy:0.31.3
|
name: docker.io/aquasec/trivy:0.31.3
|
||||||
entrypoint: [ "" ]
|
entrypoint: [ "" ]
|
||||||
stage: verify
|
stage: verify
|
||||||
|
interruptible: true
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
SCAN_PATH: $CI_PROJECT_DIR
|
SCAN_PATH: $CI_PROJECT_DIR
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
.sonar-template-common:
|
.sonar-template-common:
|
||||||
stage: verify
|
stage: verify
|
||||||
|
interruptible: true
|
||||||
variables:
|
variables:
|
||||||
SONAR_HOST_URL: http://sonar7.exxcellent.de/sonar7
|
SONAR_HOST_URL: http://sonar7.exxcellent.de/sonar7
|
||||||
SONAR_PROJECT_KEY: ""
|
SONAR_PROJECT_KEY: ""
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
.sonar-template-common:
|
.sonar-template-common:
|
||||||
stage: verify
|
stage: verify
|
||||||
|
interruptible: true
|
||||||
variables:
|
variables:
|
||||||
SONAR_HOST_URL: https://sonar.exxcellent.de/sonar8
|
SONAR_HOST_URL: https://sonar.exxcellent.de/sonar8
|
||||||
SONAR_PROJECT_NAME: $CI_PROJECT_NAME
|
SONAR_PROJECT_NAME: $CI_PROJECT_NAME
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user