diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-08-23 11:45:46 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-08-23 14:14:49 +0300 |
commit | a99b2d8e124167cad134fb7cad104a922a57299c (patch) | |
tree | 13a7e1d972f62a24ecc44c6a9e1afecd2073d1b3 /app | |
parent | 0f74ba967296cfb2e2ae65328f93170f453ab687 (diff) |
Expose CI_PIPELINE_SOURCE on CI jobs
It was missing and expected it wouldn't hurt anyone
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/pipeline.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index ea7331cb27f..2d40f8012a3 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -393,7 +393,8 @@ module Ci def predefined_variables [ { key: 'CI_PIPELINE_ID', value: id.to_s, public: true }, - { key: 'CI_CONFIG_PATH', value: ci_yaml_file_path, public: true } + { key: 'CI_CONFIG_PATH', value: ci_yaml_file_path, public: true }, + { key: 'CI_PIPELINE_SOURCE', value: source.to_s, public: true } ] end |