Skip to content

Commit

Permalink
fix (api): dequeue with context
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamin committed Jun 5, 2017
1 parent ec062e4 commit 47804ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/worker/builtin_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func runScriptAction(a *sdk.Action, pbJob sdk.PipelineBuildJob, stepOrder int) s
for _, p := range pbJob.Parameters {
envName := strings.Replace(p.Name, ".", "_", -1)
envName = strings.ToUpper(envName)
if sdk.NeedPlaceholder(p.Type) {
if !sdk.NeedPlaceholder(p.Type) {
cmd.Env = append(cmd.Env, fmt.Sprintf("%s=%s", envName, p.Value))
} else {
cmd.Env = append(cmd.Env, fmt.Sprintf("%s=%s", envName, sdk.PasswordPlaceholder))
Expand Down

0 comments on commit 47804ab

Please sign in to comment.