Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2018-03-05 15:39:11 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-03-05 15:39:11 +0300
commit37587c2b638c7bfc81a9723380af518a66d6a104 (patch)
treeae43cc4e42e44cda20f990a102d46e397d988899 /.gitlab-ci.yml
parent19db3678d11b7c684f97d7f604022bc6846f37ca (diff)
Do not run pipelines invoked via the API
We want to avoid running pipelines triggered via the API because of a race condition in the cross-project pipeline script. Read more in https://gitlab.com/gitlab-com/gitlab-docs/issues/154#note_61672645
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml20
1 files changed, 15 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f1f9126e..be4e7276 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -53,7 +53,8 @@ compile_prod:
- /^\d{1,2}\.\d{1,2}$/
#
-# Compile on all branches except master
+# Compile on all branches except master, stable branches
+# and pipelines triggered using the API.
#
compile_dev:
<<: *build_base
@@ -61,6 +62,7 @@ compile_dev:
- branches
except:
- master
+ - api
- /^\d{1,2}\.\d{1,2}$/
###############################################
@@ -81,12 +83,15 @@ internal_links:
- vendor/ruby
tags:
- docker
- # Skip this job when it's invoked by a cross project pipeline. That will speed
+ # Skip this job when it's invoked by a cross project pipeline (pipelines),
+ # a trigger (triggers) and via the API (api). That will speed
# up the pipeline when a docs preview is triggered. We already check for
# internal links in every MR anyway. For more info:
# https://docs.gitlab.com/ee/development/writing_documentation.html#previewing-the-changes-live
except:
- pipelines
+ - triggers
+ - api
#
# SCSS linting
@@ -101,12 +106,15 @@ scss_lint:
- vendor/ruby
tags:
- docker
- # Skip this job when it's invoked by a cross project pipeline. That will speed
+ # Skip this job when it's invoked by a cross project pipeline (pipelines),
+ # a trigger (triggers) and via the API (api). That will speed
# up the pipeline when a docs preview is triggered. The triggered pipeline is
# always a branch off master which should be green anyway. For more info:
# https://docs.gitlab.com/ee/development/writing_documentation.html#previewing-the-changes-live
except:
- pipelines
+ - triggers
+ - api
###############################################
# Review Apps #
@@ -131,10 +139,11 @@ review:
on_stop: review_stop
only:
- branches@gitlab-com/gitlab-docs
- # Except master and stable branches
+ # Except master, stable branches and pipelines triggered via API
except:
- master
- /^\d{1,2}\.\d{1,2}$/
+ - api
tags:
- nginx
- review-apps
@@ -158,10 +167,11 @@ review_stop:
action: stop
only:
- branches@gitlab-com/gitlab-docs
- # Except master and stable branches
+ # Except master, stable branches and pipelines triggered via API
except:
- master
- /^\d{1,2}\.\d{1,2}$/
+ - api
tags:
- nginx
- review-apps