File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ kind: step-type
3
3
metadata :
4
4
name : codefresh-run
5
5
title : Run a Codefresh pipeline
6
- version : 1.4 .0
6
+ version : 1.5 .0
7
7
isPublic : true
8
8
description : Run a Codefresh pipeline by ID or name and attach the created build logs.
9
9
sources :
@@ -171,7 +171,12 @@ spec:
171
171
"description": "Skip the specifc steps defined.",
172
172
"examples": ["step1", "step2"],
173
173
"default": []
174
- }
174
+ },
175
+ "YAML": {
176
+ "type": "string",
177
+ "description": "Path to pipeline's yaml to be used as override for this execution.",
178
+ "default": ""
179
+ }
175
180
}
176
181
}
177
182
delimiters :
@@ -224,11 +229,15 @@ spec:
224
229
[[ range .Arguments.SKIP ]]
225
230
[[- $cmd = (printf "%s --skip %s" $cmd .) -]]
226
231
[[- end ]]
232
+ [[ if .Arguments.YAML ]]
233
+ [[- $cmd = (printf "%s --yaml %s" $cmd .Arguments.YAML) -]]
234
+ [[- end -]]
227
235
228
236
[[/* Multiline string is required to support usage of 'colon' (:) character in the string. For example in the pipeline name. */]]
229
237
[[/* Otherwise after template render there is a chance to have an object instead of a string. */]]
230
238
- >-
231
- export BUILD_ID=$([[ $cmd ]]); if [ -z "$BUILD_ID" ]; then exit 1; fi
239
+ CLI_OUTPUT=$([[ $cmd ]]) &&
240
+ export BUILD_ID=$(echo "$CLI_OUTPUT" | tail -n 1); if [ -z "$BUILD_ID" ]; then exit 1; fi
232
241
- cf_export first_CF_OUTPUT_URL="${{CF_URL}}/build/$BUILD_ID"
233
242
- cf_export BUILD_ID
234
243
[[- if eq .Arguments.DETACH false ]]
You can’t perform that action at this time.
0 commit comments