• Douwe Maan's avatar
    Revert "Enable Style/DotPosition" · 56de781a
    Douwe Maan authored
    This reverts commit e00fb2bdc2090e9cabeb1eb35a2672a882cc96e9.
    
    # Conflicts:
    #	.rubocop.yml
    #	.rubocop_todo.yml
    #	lib/gitlab/ci/config/entry/global.rb
    #	lib/gitlab/ci/config/entry/jobs.rb
    #	spec/lib/gitlab/ci/config/entry/factory_spec.rb
    #	spec/lib/gitlab/ci/config/entry/global_spec.rb
    #	spec/lib/gitlab/ci/config/entry/job_spec.rb
    #	spec/lib/gitlab/ci/status/build/factory_spec.rb
    #	spec/lib/gitlab/incoming_email_spec.rb
    56de781a
build_hooks_worker.rb 168 Bytes
class BuildHooksWorker
  include Sidekiq::Worker
  include BuildQueue

  def perform(build_id)
    Ci::Build.find_by(id: build_id)
      .try(:execute_hooks)
  end
end