summaryrefslogtreecommitdiff
path: root/app/services/ci
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/ci')
-rw-r--r--app/services/ci/create_cross_project_pipeline_service.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/services/ci/create_cross_project_pipeline_service.rb b/app/services/ci/create_cross_project_pipeline_service.rb
index dd15fa8ddb8..8de72ace261 100644
--- a/app/services/ci/create_cross_project_pipeline_service.rb
+++ b/app/services/ci/create_cross_project_pipeline_service.rb
@@ -18,7 +18,7 @@ module Ci
current_user,
pipeline_params.fetch(:target_revision))
- downstream_pipeline = service.execute(
+ service.execute(
pipeline_params.fetch(:source), pipeline_params[:execute_params]) do |pipeline|
@bridge.sourced_pipelines.build(
source_pipeline: @bridge.pipeline,
@@ -28,10 +28,6 @@ module Ci
pipeline.variables.build(@bridge.downstream_variables)
end
-
- downstream_pipeline.tap do |pipeline|
- @bridge.drop!(:downstream_pipeline_creation_failed) if pipeline.errors.any?
- end
end
private