diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ac3650a3472e862d78b2ec00bcec659cbf95e2e7..06f5830a41eb6ada58959602a4044c3789139103 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,16 @@ +include: + - template: 'Workflows/Branch-Pipelines.gitlab-ci.yml' + stages: - build - test - check - deploy +default: + tags: + - exec-docker + .dind: tags: - exec-dind @@ -20,8 +27,6 @@ stages: .docs: image: alpine/bundle:3.0.3 - tags: - - exec-docker cache: paths: - docs/vendor @@ -50,11 +55,10 @@ test-docs-links: lint-helm: stage: check + needs: [] image: name: alpine/helm:3.5.2 entrypoint: [""] - tags: - - exec-docker script: helm lint helm/ @@ -62,8 +66,6 @@ lint-helm: .benchmarks: image: openjdk:11-jdk - tags: - - exec-docker variables: GRADLE_OPTS: "-Dorg.gradle.daemon=false" cache: @@ -73,6 +75,11 @@ lint-helm: before_script: - export GRADLE_USER_HOME=`pwd`/.gradle - cd theodolite-benchmarks + rules: + - changes: + - theodolite-benchmarks/**/* + - when: manual + allow_failure: true build-benchmarks: stage: build @@ -155,8 +162,6 @@ spotbugs-benchmarks: - docker push $CR_HOST/$CR_ORG/$IMAGE_NAME - docker logout rules: - - if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW && $IMAGE_NAME && $JAVA_PROJECT_NAME && $CI_COMMIT_TAG" - when: always - changes: - theodolite-benchmarks/* - theodolite-benchmarks/$JAVA_PROJECT_NAME/**/* @@ -164,7 +169,6 @@ spotbugs-benchmarks: - theodolite-benchmarks/flink-commons/**/* - theodolite-benchmarks/load-generator-commons/**/* if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW && $IMAGE_NAME && $JAVA_PROJECT_NAME" - when: always - if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW && $IMAGE_NAME && $JAVA_PROJECT_NAME" when: manual allow_failure: true @@ -248,8 +252,6 @@ deploy-uc4-load-generator: image: name: ghcr.io/graalvm/native-image:java11-21.1.0 entrypoint: [""] - tags: - - exec-docker variables: GRADLE_OPTS: "-Dorg.gradle.daemon=false" cache: @@ -331,40 +333,47 @@ deploy-theodolite: - docker push $CR_HOST/$CR_ORG/theodolite - docker logout rules: - - if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW && $CI_COMMIT_TAG" - when: always - changes: - theodolite/**/* if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW" - when: always - if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW" when: manual allow_failure: true -# Theodolite SLO Checker: Lag Trend +# Theodolite SLO Checker test-slo-checker-lag-trend: stage: test + needs: [] image: python:3.7-slim - tags: - - exec-docker - script: + before_script: - cd slo-checker/record-lag + script: - pip install -r requirements.txt - cd app - python -m unittest + rules: + - changes: + - slo-checker/record-lag/**/* + - when: manual + allow_failure: true test-slo-checker-dropped-records-kstreams: stage: test + needs: [] image: python:3.7-slim - tags: - - exec-docker - script: + before_script: - cd slo-checker/dropped-records + script: - pip install -r requirements.txt - cd app - python -m unittest + rules: + - changes: + - slo-checker/dropped-records/**/* + - when: manual + allow_failure: true deploy-slo-checker-lag-trend: stage: deploy @@ -381,12 +390,9 @@ deploy-slo-checker-lag-trend: - docker push $CR_HOST/$CR_ORG/theodolite-slo-checker-lag-trend - docker logout rules: - - if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW && $CI_COMMIT_TAG" - when: always - changes: - slo-checker/record-lag/**/* if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW" - when: always - if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW" when: manual allow_failure: true @@ -406,12 +412,9 @@ deploy-slo-checker-dropped-records-kstreams: - docker push $CR_HOST/$CR_ORG/theodolite-slo-checker-dropped-records-kstreams - docker logout rules: - - if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW && $CI_COMMIT_TAG" - when: always - changes: - slo-checker/dropped-records/**/* if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW" - when: always - if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW" when: manual allow_failure: true @@ -433,12 +436,9 @@ deploy-random-scheduler: - docker push $CR_HOST/$CR_ORG/theodolite-random-scheduler - docker logout rules: - - if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW && $CI_COMMIT_TAG" - when: always - changes: - execution/infrastructure/random-scheduler/**/* if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW" - when: always - if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW" when: manual allow_failure: true