fix issue with incorrect build status environment variable

This commit is contained in:
Brad Rydzewski
2016-05-13 09:56:58 -07:00
parent a6e9c215ec
commit 5c9a22a58b
5 changed files with 5 additions and 4 deletions

View File

@@ -203,7 +203,7 @@ func (a *Agent) exec(spec *yaml.Config, payload *queue.Work, cancel <-chan bool)
}
// updates the build status passed into each container. I realize this is
// a bit out of place and will work to resolve.
pipeline.Head().Environment["DRONE_STATUS"] = status
pipeline.Head().Environment["DRONE_BUILD_STATUS"] = status
if !pipeline.Head().Constraints.Match(
a.Platform,