Keep around commits only on pipeline create
This commit is contained in:
parent
a96756008a
commit
67b96255d8
2 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@ Please view this file on the master branch, on stable branches it's out of date.
|
|||
- Ability to resolve merge request conflicts with editor !6374
|
||||
- Add `/projects/visible` API endpoint (Ben Boeckel)
|
||||
- Fix centering of custom header logos (Ashley Dumaine)
|
||||
- Keep around commits only pipeline creation as pipeline data doesn't change over time
|
||||
- ExpireBuildArtifactsWorker query builds table without ordering enqueuing one job per build to cleanup
|
||||
- Add an example for testing a phoenix application with Gitlab CI in the docs (Manthan Mallikarjun)
|
||||
- Cancelled pipelines could be retried. !6927
|
||||
|
|
|
@ -19,7 +19,7 @@ module Ci
|
|||
validates_presence_of :status, unless: :importing?
|
||||
validate :valid_commit_sha, unless: :importing?
|
||||
|
||||
after_save :keep_around_commits, unless: :importing?
|
||||
after_create :keep_around_commits, unless: :importing?
|
||||
|
||||
delegate :stages, to: :statuses
|
||||
|
||||
|
|
Loading…
Reference in a new issue