Commit b831b6de authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflict in app/models/ci/build.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 37de1836
...@@ -51,8 +51,6 @@ module Ci ...@@ -51,8 +51,6 @@ module Ci
scope :manual_actions, ->() { where(when: :manual, status: COMPLETED_STATUSES + [:manual]) } scope :manual_actions, ->() { where(when: :manual, status: COMPLETED_STATUSES + [:manual]) }
scope :ref_protected, -> { where(protected: true) } scope :ref_protected, -> { where(protected: true) }
<<<<<<< HEAD
=======
scope :matches_tag_ids, -> (tag_ids) do scope :matches_tag_ids, -> (tag_ids) do
matcher = ::ActsAsTaggableOn::Tagging matcher = ::ActsAsTaggableOn::Tagging
.where(taggable_type: CommitStatus) .where(taggable_type: CommitStatus)
...@@ -72,7 +70,6 @@ module Ci ...@@ -72,7 +70,6 @@ module Ci
where("EXISTS (?)", matcher) where("EXISTS (?)", matcher)
end end
>>>>>>> upstream/master
mount_uploader :legacy_artifacts_file, LegacyArtifactUploader, mount_on: :artifacts_file mount_uploader :legacy_artifacts_file, LegacyArtifactUploader, mount_on: :artifacts_file
mount_uploader :legacy_artifacts_metadata, LegacyArtifactUploader, mount_on: :artifacts_metadata mount_uploader :legacy_artifacts_metadata, LegacyArtifactUploader, mount_on: :artifacts_metadata
...@@ -361,13 +358,10 @@ module Ci ...@@ -361,13 +358,10 @@ module Ci
project.running_or_pending_build_count(force: true) project.running_or_pending_build_count(force: true)
end end
<<<<<<< HEAD
def browsable_artifacts? def browsable_artifacts?
artifacts_metadata? artifacts_metadata?
end end
=======
>>>>>>> upstream/master
def artifacts_metadata_entry(path, **options) def artifacts_metadata_entry(path, **options)
artifacts_metadata.use_file do |metadata_path| artifacts_metadata.use_file do |metadata_path|
metadata = Gitlab::Ci::Build::Artifacts::Metadata.new( metadata = Gitlab::Ci::Build::Artifacts::Metadata.new(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment