diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/pipeline/chain/helpers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/ci/pipeline/chain/helpers.rb b/lib/gitlab/ci/pipeline/chain/helpers.rb index 02d81286f21..36ed87dbd32 100644 --- a/lib/gitlab/ci/pipeline/chain/helpers.rb +++ b/lib/gitlab/ci/pipeline/chain/helpers.rb @@ -3,17 +3,21 @@ module Gitlab module Pipeline module Chain module Helpers + # rubocop:disable Cop/ModuleWithInstanceVariables def branch_exists? return @is_branch if defined?(@is_branch) @is_branch = project.repository.branch_exists?(pipeline.ref) end + # rubocop:enable Cop/ModuleWithInstanceVariables + # rubocop:disable Cop/ModuleWithInstanceVariables def tag_exists? return @is_tag if defined?(@is_tag) @is_tag = project.repository.tag_exists?(pipeline.ref) end + # rubocop:enable Cop/ModuleWithInstanceVariables def error(message) pipeline.errors.add(:base, message) |