summaryrefslogtreecommitdiff
path: root/.gitlab
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-27 09:08:28 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-27 09:08:28 +0000
commit6ac4a6713ed3196af899011f7e18658e16ebaac0 (patch)
treec60237cb5203d171481b765d31bfead080d063cf /.gitlab
parentd2b64c37bdef067656fdc8deb4728a2fbc6c2729 (diff)
downloadgitlab-ce-6ac4a6713ed3196af899011f7e18658e16ebaac0.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/ci/rules.gitlab-ci.yml11
-rw-r--r--.gitlab/ci/setup.gitlab-ci.yml12
2 files changed, 23 insertions, 0 deletions
diff --git a/.gitlab/ci/rules.gitlab-ci.yml b/.gitlab/ci/rules.gitlab-ci.yml
index 6420e951a78..3dc09b9988e 100644
--- a/.gitlab/ci/rules.gitlab-ci.yml
+++ b/.gitlab/ci/rules.gitlab-ci.yml
@@ -16,6 +16,9 @@
.if-master-refs: &if-master-refs
if: '$CI_COMMIT_REF_NAME == "master"'
+.if-auto-deploy-branches: &if-auto-deploy-branches
+ if: '$CI_COMMIT_BRANCH =~ /^\d+-\d+-auto-deploy-\d+$/'
+
.if-master-or-tag: &if-master-or-tag
if: '$CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_TAG'
@@ -509,6 +512,14 @@
changes: *code-backstage-qa-patterns
when: on_success
+.setup:rules:dont-interrupt-me:
+ rules:
+ - <<: *if-master-or-tag
+ when: on_success
+ - <<: *if-auto-deploy-branches
+ when: on_success
+ - when: manual
+
.setup:rules:gitlab_git_test:
rules:
- <<: *if-default-refs
diff --git a/.gitlab/ci/setup.gitlab-ci.yml b/.gitlab/ci/setup.gitlab-ci.yml
index b1918961f3e..60e52ffdf5e 100644
--- a/.gitlab/ci/setup.gitlab-ci.yml
+++ b/.gitlab/ci/setup.gitlab-ci.yml
@@ -23,6 +23,18 @@ cache gems:
- .default-retry
needs: []
+dont-interrupt-me:
+ extends: .setup:rules:dont-interrupt-me
+ stage: prepare
+ image: alpine:edge
+ interruptible: false
+ allow_failure: true
+ variables:
+ GIT_STRATEGY: none
+ dependencies: []
+ script:
+ - echo "This jobs makes sure this pipeline won't be interrupted! See https://docs.gitlab.com/ee/ci/yaml/#interruptible."
+
gitlab_git_test:
extends:
- .minimal-job