Merge pull request #1546 from jeffastorey/pipeline-support
#470 Pipeline support
This commit is contained in:
commit
8a6857a74b
1 changed files with 9 additions and 0 deletions
|
@ -228,6 +228,15 @@ func PostBuild(c *gin.Context) {
|
||||||
c.String(500, err.Error())
|
c.String(500, err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
event := c.DefaultQuery("event", build.Event)
|
||||||
|
if event == model.EventPush ||
|
||||||
|
event == model.EventPull ||
|
||||||
|
event == model.EventTag ||
|
||||||
|
event == model.EventDeploy {
|
||||||
|
build.Event = event
|
||||||
|
}
|
||||||
|
build.Deploy = c.DefaultQuery("deploy_to", build.Deploy)
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo move this to database tier
|
// todo move this to database tier
|
||||||
|
|
Loading…
Reference in a new issue