Welcome to mirror list, hosted at ThFree Co, Russian Federation.

source_pipeline_helpers.rb « ci « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b99f499cc16f75cdede899d4f241f682687b1cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Ci
  module SourcePipelineHelpers
    def create_source_pipeline(upstream, downstream)
      create(:ci_sources_pipeline,
             source_job: create(:ci_build, pipeline: upstream),
             source_project: upstream.project,
             pipeline: downstream,
             project: downstream.project)
    end
  end
end