summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-03-30 12:26:55 +0200
committerRémy Coutable <remy@rymai.me>2018-03-30 14:48:28 +0200
commit7279b40c9f1521bae56998e2784ad73fcc4b6eae (patch)
treeab166b4f82a904e930e3c63917f4434e8860fa7f /.gitlab-ci.yml
parent80b475d5a045c91aca7df87f65406222f13b6137 (diff)
downloadgitlab-ce-7279b40c9f1521bae56998e2784ad73fcc4b6eae.tar.gz
Don't let the Runner clone/fetch prior to the package-and-qa jobrc/checkout-false-in-package-and-qa
Do it by hand instead, that way we can still run this job even if the branch has been removed. Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 70f41e4dc98..4890738aa3d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -264,8 +264,17 @@ package-and-qa:
stage: build
cache: {}
when: manual
+ variables:
+ GIT_STRATEGY: none
+ before_script:
+ # We need to download the script rather than clone the repo since the
+ # package-and-qa job will not be able to run when the branch gets
+ # deleted (when merging the MR).
+ - apk add --update openssl
+ - wget https://gitlab.com/gitlab-org/gitlab-ce/raw/$CI_COMMIT_SHA/scripts/trigger-build-omnibus
+ - chmod 755 trigger-build-omnibus
script:
- - scripts/trigger-build-omnibus
+ - ./trigger-build-omnibus
only:
- //@gitlab-org/gitlab-ce
- //@gitlab-org/gitlab-ee