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

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2020-05-19 06:35:30 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-05-19 06:35:30 +0300
commite7aaafad18934d57c8046fd641834fac344854ae (patch)
treef7c710461dc340c34641c9db6247cb0a77b44a06
parent9d1b594d3accafa63c879a2c7796cfd5a44cefec (diff)
Override prepare stage
With latest changes to autodevops templates it is now needed to override rules so that the jobs run on pipelines for merge requests.
-rw-r--r--.gitlab-ci.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dce2ccfc..bcb3c3d7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -54,9 +54,19 @@ license_scanning:
stage: prepare
variables:
LICENSE_MANAGEMENT_SETUP_CMD: go mod vendor
+ rules:
+ - if: $CI_MERGE_REQUEST_ID
+ when: on_success
+ - if: $CI_COMMIT_BRANCH == 'master'
+ when: on_success
sast:
stage: prepare
+ rules:
+ - if: $CI_MERGE_REQUEST_ID
+ when: on_success
+ - if: $CI_COMMIT_BRANCH == 'master'
+ when: on_success
download deps:
extends: .go-mod-cache