mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-10 17:45:36 +00:00
update to initialize the Environment map
This commit is contained in:
parent
ecc2728d9f
commit
fd2b4b71ba
1 changed files with 3 additions and 0 deletions
|
@ -210,6 +210,9 @@ 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
|
// updates the build status passed into each container. I realize this is
|
||||||
// a bit out of place and will work to resolve.
|
// a bit out of place and will work to resolve.
|
||||||
|
if pipeline.Head().Environment == nil {
|
||||||
|
pipeline.Head().Environment = make(map[string]string)
|
||||||
|
}
|
||||||
pipeline.Head().Environment["DRONE_BUILD_STATUS"] = status
|
pipeline.Head().Environment["DRONE_BUILD_STATUS"] = status
|
||||||
|
|
||||||
if !pipeline.Head().Constraints.Match(
|
if !pipeline.Head().Constraints.Match(
|
||||||
|
|
Loading…
Reference in a new issue