fix: correctly handle injecting environment variables to deployment tasks

Also test that release tasks are invoked the correct environment.

Closes #3817
This commit is contained in:
Jose Diaz-Gonzalez
2020-08-31 15:01:14 -04:00
parent 7e7931f1ce
commit 84367e1c16
26 changed files with 449 additions and 14 deletions

View File

@@ -81,7 +81,12 @@ func LogVerboseQuietContainerLogs(containerID string) {
LogExclaim(fmt.Sprintf("Failed to fetch container logs: %s", containerID))
}
for _, line := range strings.Split(strings.TrimSpace(string(b)), "\n") {
output := strings.TrimSpace(string(b))
if len(output) == 0 {
return
}
for _, line := range strings.Split(output, "\n") {
if line != "" {
LogVerboseQuiet(line)
}