Commit 69c9af3e authored by Fabio Pitino's avatar Fabio Pitino

Create downstream pipeline inside same project

Allow CreateCrossProjectPipelineService to create
a pipeline when the same project is provided for
target and source.
parent 6785d144
......@@ -132,6 +132,13 @@ module EE
end
end
def yaml_for_downstream
strong_memoize(:yaml_for_downstream) do
includes = options&.dig(:trigger, :include)
YAML.dump('include' => includes) if includes
end
end
def upstream_project
strong_memoize(:upstream_project) do
upstream_project_path && ::Project.find_by_full_path(upstream_project_path)
......
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