diff options
Diffstat (limited to 'app/models/ci/pipeline.rb')
-rw-r--r-- | app/models/ci/pipeline.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index cc5ba41191b..020f5cf9d8e 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -121,7 +121,7 @@ module Ci accepts_nested_attributes_for :variables, reject_if: :persisted? delegate :full_path, to: :project, prefix: true - delegate :title, to: :pipeline_metadata, allow_nil: true + delegate :name, to: :pipeline_metadata, allow_nil: true validates :sha, presence: { unless: :importing? } validates :ref, presence: { unless: :importing? } @@ -183,7 +183,11 @@ module Ci end event :succeed do - transition any - [:success] => :success + # A success pipeline can also be retried, for example; a pipeline with a failed manual job. + # When retrying the pipeline, the status of the pipeline is not changed because the failed + # manual job transitions to the `manual` status. + # More info: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/98967#note_1144718316 + transition any => :success end event :cancel do |