summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-07-01 15:23:09 +0900
committerShinya Maeda <shinya@gitlab.com>2017-07-05 18:36:19 +0900
commit23f3c7335549861f4064e4b3696cc9de18ba8c96 (patch)
tree69562daa41a820e8c0993d0319accc3a9fcb2fa7 /app
parent9fe7f0c706818ae07b188d4efdd00aaeae74139f (diff)
downloadgitlab-ce-23f3c7335549861f4064e4b3696cc9de18ba8c96.tar.gz
Fix spec
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index 77f56d1b27d..6c5b27a7ac5 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -196,7 +196,7 @@ module Ci
variables += user_variables
variables += project.secret_variables_for(ref).map(&:to_runner_variable)
variables += trigger_request.user_variables if trigger_request
- variables += pipeline.pipeline_schedule&.job_variables
+ variables += pipeline.pipeline_schedule.job_variables if pipeline.pipeline_schedule
variables
end