diff --git a/controller/build.go b/controller/build.go index bc457fc42..35e474423 100644 --- a/controller/build.go +++ b/controller/build.go @@ -236,6 +236,8 @@ func PostBuild(c *gin.Context) { build.Started = 0 build.Finished = 0 build.Enqueued = time.Now().UTC().Unix() + build.Event := c.DefaultQuery("event", build.Event)deploy_to + build.Deploy := c.DefaultQuery("deploy_to", build.Deploy) for _, job := range jobs { job.Status = model.StatusPending job.Started = 0