diff options
Diffstat (limited to 'app/services/ci/pipeline_creation/start_pipeline_service.rb')
-rw-r--r-- | app/services/ci/pipeline_creation/start_pipeline_service.rb | 5 |
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 |