mirror of
https://github.com/harness/drone.git
synced 2025-05-16 17:09:58 +08:00
Merge pull request #1546 from jeffastorey/pipeline-support
#470 Pipeline support
This commit is contained in:
commit
8a6857a74b
@ -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 New Issue
Block a user