diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-05-14 15:24:59 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-05-14 15:27:07 +0300 |
commit | b784a985f2188e328da32cc9fdc73c8d4ac63733 (patch) | |
tree | d4bb10bfcbfaf19f9ab80595bf3cee81b5e2c83f /lib/gitlab/ci/pipeline/expression | |
parent | 8b736c91fc928157df9ace050f769d0948b58c1d (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.rb | 2 |
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? |