diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-06-27 10:55:27 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 12:36:18 +0300 |
commit | 51730b3a15ce03bd5de83a978647059ad182378c (patch) | |
tree | 0a3484f7930463fb008324d7cecb3f7922e3a084 /app/models/ci/pipeline_schedule.rb | |
parent | a7c4673eb7e67202816e00d76148559d45441184 (diff) |
zj nice catches
Diffstat (limited to 'app/models/ci/pipeline_schedule.rb')
-rw-r--r-- | app/models/ci/pipeline_schedule.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/pipeline_schedule.rb b/app/models/ci/pipeline_schedule.rb index 440d9717fc8..df9df45edb0 100644 --- a/app/models/ci/pipeline_schedule.rb +++ b/app/models/ci/pipeline_schedule.rb @@ -59,5 +59,9 @@ module Ci Gitlab::Ci::CronParser.new(worker_cron, worker_time_zone) .next_time_from(next_run_at) end + + def job_variables + variables&.map(&:to_runner_variable) || [] + end end end |