Merge pull request #375 from travis-ci/sf-add-job-queued-event

Handle job:queued events
This commit is contained in:
Sven Fuchs 2015-07-17 12:39:22 +02:00
commit 0ae751f7dc

View File

@ -79,7 +79,7 @@ TravisPusher.prototype.normalize = (event, data) ->
switch event
when 'build:started', 'build:finished'
data
when 'job:created', 'job:started', 'job:requeued', 'job:finished', 'job:log', 'job:canceled', 'job:received'
when 'job:created', 'job:queued', 'job:received', 'job:started', 'job:requeued', 'job:finished', 'job:log', 'job:canceled'
data.queue = data.queue.replace('builds.', '') if data.queue
{ job: data }
when 'worker:added', 'worker:updated', 'worker:removed'