Skip to content
Snippets Groups Projects
Commit 44543b01 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Add payload suppoty

parent 1f3e445e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -67,7 +67,14 @@ class ProjectsController < ApplicationController
# Ignore remove branch push
return head(200) if params[:after] =~ /^00000000/
 
@build = @project.register_build(params)
# Support payload (like github) push
build_params = if params[:payload]
JSON.parse(params[:payload])
else
params
end.dup
@build = @project.register_build(build_params)
 
if @build
Resque.enqueue(Runner, @build.id)
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