2020-11-24 15:15:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Ci
|
|
|
|
module SourcePipelineHelpers
|
|
|
|
def create_source_pipeline(upstream, downstream)
|
2023-06-20 00:43:36 +05:30
|
|
|
create(
|
|
|
|
:ci_sources_pipeline,
|
|
|
|
source_job: create(:ci_build, pipeline: upstream),
|
|
|
|
source_project: upstream.project,
|
|
|
|
pipeline: downstream,
|
|
|
|
project: downstream.project
|
|
|
|
)
|
2020-11-24 15:15:51 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|