diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-28 15:09:27 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-28 15:09:27 +0000 |
commit | 3a25b40d5572a1de4220a9bd284025bf5be1d16b (patch) | |
tree | 748ec93e09ada6def17ac87b4b8479dccab20d37 /.gitlab/ci/review.gitlab-ci.yml | |
parent | 22fd199237e247c36de5b982d444cedc194126e6 (diff) | |
download | gitlab-ce-3a25b40d5572a1de4220a9bd284025bf5be1d16b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to '.gitlab/ci/review.gitlab-ci.yml')
-rw-r--r-- | .gitlab/ci/review.gitlab-ci.yml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/.gitlab/ci/review.gitlab-ci.yml b/.gitlab/ci/review.gitlab-ci.yml index be9ad5128f3..1fb8985aba1 100644 --- a/.gitlab/ci/review.gitlab-ci.yml +++ b/.gitlab/ci/review.gitlab-ci.yml @@ -7,14 +7,20 @@ review-cleanup: environment: name: review/regular-cleanup action: access + variables: + KUBE_NAMESPACE: "review-apps" # gcp_cleanup.sh requires passing KUBE_NAMESPACE variable before_script: - source scripts/utils.sh - source scripts/review_apps/gcp_cleanup.sh + - !reference [".use-kube-context", before_script] - install_gitlab_gem - setup_gcp_dependencies script: - - scripts/review_apps/automated_cleanup.rb - - gcp_cleanup + - exit_code_cmd_1=0; + - exit_code_cmd_2=0; + - scripts/review_apps/automated_cleanup.rb || exit_code_cmd_1=$? + - gcp_cleanup || exit_code_cmd_2=$? + - if [ $exit_code_cmd_1 -ne 0 ] || [ $exit_code_cmd_2 -ne 0 ]; then (scripts/slack review-apps-monitoring "☠️ \`${CI_JOB_NAME}\` failed! ☠️ See ${CI_JOB_URL}" warning "GitLab Bot" && exit 1); fi; .base-review-checks: extends: @@ -35,8 +41,10 @@ review-k8s-resources-count-checks: environment: name: review/k8s-resources-count-checks action: verify + before_script: + - !reference [".use-kube-context", before_script] script: - - scripts/review_apps/k8s-resources-count-checks.sh + - scripts/review_apps/k8s-resources-count-checks.sh || (scripts/slack review-apps-monitoring "☠️ \`${CI_JOB_NAME}\` failed! ☠️ See ${CI_JOB_URL}" warning "GitLab Bot" && exit 1); review-gcp-quotas-checks: extends: @@ -46,8 +54,10 @@ review-gcp-quotas-checks: environment: name: review/gcp-quotas-checks action: verify + before_script: + - !reference [".use-kube-context", before_script] script: - - ruby scripts/review_apps/gcp-quotas-checks.rb + - ruby scripts/review_apps/gcp-quotas-checks.rb || (scripts/slack review-apps-monitoring "☠️ \`${CI_JOB_NAME}\` failed! ☠️ See ${CI_JOB_URL}" warning "GitLab Bot" && exit 1); start-review-app-pipeline: extends: |