diff options
author | Jason van den Hurk <jasonhurk@gmail.com> | 2019-03-28 13:53:35 +0100 |
---|---|---|
committer | Jason van den Hurk <jasonhurk@gmail.com> | 2019-04-10 11:13:04 +0200 |
commit | af46d33fba477785dfbe5af2d38a2e4f0ed0b696 (patch) | |
tree | 13073d4343b3f308498ed5c45db6c25206032b22 /spec/models/ci/pipeline_spec.rb | |
parent | e861af409df4139e2a1c7434b1ca490710c786f1 (diff) | |
download | gitlab-ce-af46d33fba477785dfbe5af2d38a2e4f0ed0b696.tar.gz |
Added the CI_REF_PROTECTED variable to the Gitlab runner
This variable shows if the branch the runner is executing is protected
or not.
References: #50909
Diffstat (limited to 'spec/models/ci/pipeline_spec.rb')
-rw-r--r-- | spec/models/ci/pipeline_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb index f3e78630c1b..9b86fbbefe8 100644 --- a/spec/models/ci/pipeline_spec.rb +++ b/spec/models/ci/pipeline_spec.rb @@ -670,7 +670,8 @@ describe Ci::Pipeline, :mailer do CI_PIPELINE_SOURCE CI_COMMIT_MESSAGE CI_COMMIT_TITLE - CI_COMMIT_DESCRIPTION] + CI_COMMIT_DESCRIPTION + CI_REF_PROTECTED] end context 'when source is merge request' do |