From e39345688de15ec7af76d67f4c5a0e835cca22d9 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 17 Jul 2024 16:02:38 -0700 Subject: [PATCH] Allow to change the working directory also plugins and services (#3914) --- pipeline/frontend/yaml/compiler/convert.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pipeline/frontend/yaml/compiler/convert.go b/pipeline/frontend/yaml/compiler/convert.go index 92d68fe45..2d843242c 100644 --- a/pipeline/frontend/yaml/compiler/convert.go +++ b/pipeline/frontend/yaml/compiler/convert.go @@ -84,9 +84,7 @@ func (c *Compiler) createProcess(container *yaml_types.Container, stepType backe detached = true } - if !detached || len(container.Commands) != 0 { - workingDir = c.stepWorkingDir(container) - } + workingDir = c.stepWorkingDir(container) getSecretValue := func(name string) (string, error) { name = strings.ToLower(name)