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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-11-06 17:40:19 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-11-06 17:40:19 +0300
commitf8b681f6e985d49b39d399d60666b051a60a6502 (patch)
treef18b6f54030cb3f21fafbc50ebd390281e22d413 /lib/gitlab/ci
parentfc6aad0b4442c58fde1ac924cb2dd73823273537 (diff)
WIP
Diffstat (limited to 'lib/gitlab/ci')
-rw-r--r--lib/gitlab/ci/pipeline/chain/helpers.rb4
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)