Skip to content

Commit 86e5a2c

Browse files
Revert "Revert "[CR-3221] Fix issue with spaces in PIPELINE_ID and VARIABLE arguments for codefresh-run step""
1 parent eb1eeea commit 86e5a2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graduated/codefresh-run/step.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: step-type
33
metadata:
44
name: codefresh-run
55
title: Run a Codefresh pipeline
6-
version: 1.0.5
6+
version: 1.0.4
77
isPublic: true
88
description: Run a Codefresh pipeline by ID or name and attach the created build logs.
99
sources:
@@ -142,7 +142,7 @@ spec:
142142
first:
143143
image: codefresh/cli
144144
commands:
145-
[[- $cmd := (printf "codefresh run %s -d" .Arguments.PIPELINE_ID ) -]]
145+
[[- $cmd := (printf "codefresh run \"%s\" -d" .Arguments.PIPELINE_ID ) -]]
146146
[[ if .Arguments.TRIGGER_ID ]]
147147
[[- $cmd = (printf "%s -t %s" $cmd .Arguments.TRIGGER_ID) -]]
148148
[[- end -]]
@@ -165,7 +165,7 @@ spec:
165165
[[- $cmd = (printf "%s --reset-volume" $cmd) -]]
166166
[[- end -]]
167167
[[ range .Arguments.VARIABLE ]]
168-
[[- $cmd = (printf "%s --variable %s" $cmd .) -]]
168+
[[- $cmd = (printf "%s --variable \"%s\"" $cmd .) -]]
169169
[[- end -]]
170170
[[ range .Arguments.CONTEXT ]]
171171
[[- $cmd = (printf "%s --context %s" $cmd .) -]]

0 commit comments

Comments
 (0)