Skip to content

Commit

Permalink
allow build request override of pipeline strategy envs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabemontero committed Feb 28, 2017
1 parent 9e1c93e commit 5a6db06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/build/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ func updateBuildEnv(strategy *buildapi.BuildStrategy, env []kapi.EnvVar) {
buildEnv = &strategy.DockerStrategy.Env
case strategy.CustomStrategy != nil:
buildEnv = &strategy.CustomStrategy.Env
case strategy.JenkinsPipelineStrategy != nil:
buildEnv = &strategy.JenkinsPipelineStrategy.Env
}

newEnv := []kapi.EnvVar{}
Expand Down

0 comments on commit 5a6db06

Please sign in to comment.