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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-14 15:24:59 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-14 15:27:07 +0300
commitb784a985f2188e328da32cc9fdc73c8d4ac63733 (patch)
treed4bb10bfcbfaf19f9ab80595bf3cee81b5e2c83f /lib/gitlab/ci/pipeline/expression
parent8b736c91fc928157df9ace050f769d0948b58c1d (diff)
Do not raise if variable expression can not be evaluated
Diffstat (limited to 'lib/gitlab/ci/pipeline/expression')
-rw-r--r--lib/gitlab/ci/pipeline/expression/statement.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/ci/pipeline/expression/statement.rb b/lib/gitlab/ci/pipeline/expression/statement.rb
index 09a7c98464b..363e0b708a6 100644
--- a/lib/gitlab/ci/pipeline/expression/statement.rb
+++ b/lib/gitlab/ci/pipeline/expression/statement.rb
@@ -35,6 +35,8 @@ module Gitlab
def truthful?
evaluate.present?
+ rescue StatementError
+ false
end
def valid?