Skip to content
Snippets Groups Projects
Commit 242d3635 authored by Fabio Pitino's avatar Fabio Pitino
Browse files

Execute build hooks on pending status

Run build hooks (webhooks and integrations) when
a build changes status to pending.

Changelog: added
parent 680c4923
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -288,6 +288,7 @@ def with_preloads
 
build.run_after_commit do
BuildQueueWorker.perform_async(id)
BuildHooksWorker.perform_async(id)
end
end
 
Loading
Loading
Loading
Loading
@@ -3762,6 +3762,12 @@
 
build.enqueue
end
it 'queues BuildHooksWorker' do
expect(BuildHooksWorker).to receive(:perform_async).with(build.id)
build.enqueue
end
end
 
describe 'state transition: pending: :running' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment