summaryrefslogtreecommitdiff
path: root/app/services/ci/pipeline_creation/start_pipeline_service.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-19 07:33:21 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-19 07:33:21 +0000
commit36a59d088eca61b834191dacea009677a96c052f (patch)
treee4f33972dab5d8ef79e3944a9f403035fceea43f /app/services/ci/pipeline_creation/start_pipeline_service.rb
parenta1761f15ec2cae7c7f7bbda39a75494add0dfd6f (diff)
downloadgitlab-ce-36a59d088eca61b834191dacea009677a96c052f.tar.gz
Add latest changes from gitlab-org/gitlab@15-0-stable-eev15.0.0-rc42
Diffstat (limited to 'app/services/ci/pipeline_creation/start_pipeline_service.rb')
-rw-r--r--app/services/ci/pipeline_creation/start_pipeline_service.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/services/ci/pipeline_creation/start_pipeline_service.rb b/app/services/ci/pipeline_creation/start_pipeline_service.rb
index 27c12caaa0a..65a045f32dd 100644
--- a/app/services/ci/pipeline_creation/start_pipeline_service.rb
+++ b/app/services/ci/pipeline_creation/start_pipeline_service.rb
@@ -10,6 +10,11 @@ module Ci
end
def execute
+ ##
+ # Create a persistent ref for the pipeline.
+ # The pipeline ref is fetched in the jobs and deleted when the pipeline transitions to a finished state.
+ pipeline.ensure_persistent_ref
+
Ci::ProcessPipelineService.new(pipeline).execute
end
end