diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-05-19 06:35:30 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2020-05-19 06:35:30 +0300 |
commit | e7aaafad18934d57c8046fd641834fac344854ae (patch) | |
tree | f7c710461dc340c34641c9db6247cb0a77b44a06 /.gitlab-ci.yml | |
parent | 9d1b594d3accafa63c879a2c7796cfd5a44cefec (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.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 10 |
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 |