diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-08-26 11:17:47 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-08-26 11:17:47 +0200 |
commit | cdcc196c1fb602303a4fae36a584005ef212b9c8 (patch) | |
tree | fc2d1c0e4607c2d3d86a516426d81b976838603d /app | |
parent | 5ce9e03f6c015ab28aac1b3490acbf6f1c6f538f (diff) | |
download | gitlab-ce-cdcc196c1fb602303a4fae36a584005ef212b9c8.tar.gz |
Make it possible to access deployment details from pipeline
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/pipeline.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index ea7331cb27f..36381956195 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -31,6 +31,7 @@ module Ci has_many :auto_canceled_jobs, class_name: 'CommitStatus', foreign_key: 'auto_canceled_by_id' delegate :id, to: :project, prefix: true + delegate :deployment_variables, to: :project, prefix: true validates :source, exclusion: { in: %w(unknown), unless: :importing? }, on: :create validates :sha, presence: { unless: :importing? } |