summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2017-08-24 08:29:54 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2017-08-24 08:29:54 +0000
commit39b5bd69ba575351f9ca4a4048acece296b9e715 (patch)
tree4b9650b7355a19af99a33b0787d20a6f67fc010d /app
parent93ad83443a4d3b929e817d0dce174cda9aff3393 (diff)
parenta99b2d8e124167cad134fb7cad104a922a57299c (diff)
downloadgitlab-ce-39b5bd69ba575351f9ca4a4048acece296b9e715.tar.gz
Merge branch 'zj-add-pipeline-source-variable' into 'master'
Expose CI_PIPELINE_SOURCE on CI jobs Closes #34165 See merge request !13759
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/pipeline.rb3
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