diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-04-24 17:57:11 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-04-24 17:57:11 +0300 |
commit | 7734b834fb7aebc1c10f7e8ec20d74a208bd5a8b (patch) | |
tree | 9082bc450791c51ff48021ecfa4ce60c103ce4a6 /app/models/ci | |
parent | 4de9b14ce6137e5d44fd8b10e9566d220f1ebdcd (diff) | |
parent | d1b2056c155f49004a80280e46d7136fd804ad98 (diff) |
Merge branch 'add-ci-variable-protected-ref' into 'master'
Add CI variable CI_REF_PROTECTED
See merge request gitlab-org/gitlab-ce!26716
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/pipeline.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index b8edaf82c3d..bbd21eb0e78 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -642,6 +642,7 @@ module Ci variables.append(key: 'CI_COMMIT_MESSAGE', value: git_commit_message.to_s) variables.append(key: 'CI_COMMIT_TITLE', value: git_commit_full_title.to_s) variables.append(key: 'CI_COMMIT_DESCRIPTION', value: git_commit_description.to_s) + variables.append(key: 'CI_COMMIT_REF_PROTECTED', value: (!!protected_ref?).to_s) if merge_request_event? && merge_request variables.append(key: 'CI_MERGE_REQUEST_SOURCE_BRANCH_SHA', value: source_sha.to_s) |