diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 14:59:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 14:59:07 +0300 |
commit | 8b573c94895dc0ac0e1d9d59cf3e8745e8b539ca (patch) | |
tree | 544930fb309b30317ae9797a9683768705d664c4 /app/workers/create_evidence_worker.rb | |
parent | 4b1de649d0168371549608993deac953eb692019 (diff) |
Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42
Diffstat (limited to 'app/workers/create_evidence_worker.rb')
-rw-r--r-- | app/workers/create_evidence_worker.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/app/workers/create_evidence_worker.rb b/app/workers/create_evidence_worker.rb deleted file mode 100644 index b18028e4114..00000000000 --- a/app/workers/create_evidence_worker.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -class CreateEvidenceWorker # rubocop:disable Scalability/IdempotentWorker - include ApplicationWorker - - feature_category :release_evidence - weight 2 - - # pipeline_id is optional for backward compatibility with existing jobs - # caller should always try to provide the pipeline and pass nil only - # if pipeline is absent - def perform(release_id, pipeline_id = nil) - release = Release.find_by_id(release_id) - return unless release - - pipeline = Ci::Pipeline.find_by_id(pipeline_id) - - ::Releases::CreateEvidenceService.new(release, pipeline: pipeline).execute - end -end |