Commit 2d6df9ab authored by Albert Salim's avatar Albert Salim

Add debug lines on pipeline trigger

parent efe84ce0
...@@ -18,11 +18,16 @@ module Trigger ...@@ -18,11 +18,16 @@ module Trigger
class Base class Base
def invoke!(post_comment: false, downstream_job_name: nil) def invoke!(post_comment: false, downstream_job_name: nil)
pipeline_variables = variables
puts "Triggering downstream pipeline on #{downstream_project_path}"
puts "with variables #{pipeline_variables}"
pipeline = Gitlab.run_trigger( pipeline = Gitlab.run_trigger(
downstream_project_path, downstream_project_path,
trigger_token, trigger_token,
ref, ref,
variables) pipeline_variables)
puts "Triggered downstream pipeline: #{pipeline.web_url}\n" puts "Triggered downstream pipeline: #{pipeline.web_url}\n"
puts "Waiting for downstream pipeline status" puts "Waiting for downstream pipeline status"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment