Commit ae3fe99b authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix-stop_review' into 'master'

Update stop_review job to handle script located in a subdirectory

See merge request gitlab-org/gitlab-ee!7785
parents b70a646f 093e5b8b
...@@ -169,7 +169,7 @@ stages: ...@@ -169,7 +169,7 @@ stages:
- export SCRIPT_NAME="${SCRIPT_NAME:-$CI_JOB_NAME}" - export SCRIPT_NAME="${SCRIPT_NAME:-$CI_JOB_NAME}"
- apk add --update openssl - apk add --update openssl
- wget $CI_PROJECT_URL/raw/$CI_COMMIT_SHA/scripts/$SCRIPT_NAME - wget $CI_PROJECT_URL/raw/$CI_COMMIT_SHA/scripts/$SCRIPT_NAME
- chmod 755 $SCRIPT_NAME - chmod 755 $(basename $SCRIPT_NAME)
.rake-exec: &rake-exec .rake-exec: &rake-exec
<<: *dedicated-no-docs-no-db-pull-cache-job <<: *dedicated-no-docs-no-db-pull-cache-job
...@@ -1155,9 +1155,10 @@ stop_review: ...@@ -1155,9 +1155,10 @@ stop_review:
allow_failure: true allow_failure: true
cache: {} cache: {}
dependencies: [] dependencies: []
before_script: [] variables:
SCRIPT_NAME: "review_apps/review-apps.sh"
script: script:
- source ./scripts/review_apps/review-apps.sh - source $(basename "${SCRIPT_NAME}")
- delete - delete
- cleanup - cleanup
when: manual when: manual
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment