Skip to content

Commit 255f9d3

Browse files
Shrubberervdemeester
authored andcommitted
Update openshift-client.yaml with optional results field
Added a results field with an optional RESULT to emit output for use in pipeline or next tasks. The default value is set to an empty string according to TEP-0048: Task Results without Results.
1 parent fc4a64c commit 255f9d3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

task/openshift-client/0.2/openshift-client.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ spec:
3838
description: The OpenShift Version to use
3939
type: string
4040
default: "4.7"
41+
42+
results:
43+
- name: RESULT
44+
description: Can be used to store output in order to be used by following tasks (with tasks.taskname.results.RESULT). Default value is empty string
45+
type: string
46+
4147
steps:
4248
- name: oc
4349
image: quay.io/openshift/origin-cli:$(params.VERSION)
@@ -50,5 +56,7 @@ spec:
5056
[[ "$(workspaces.kubeconfig-dir.bound)" == "true" ]] && \
5157
[[ -f $(workspaces.kubeconfig-dir.path)/kubeconfig ]] && \
5258
export KUBECONFIG=$(workspaces.kubeconfig-dir.path)/kubeconfig
53-
59+
60+
echo "" > $(results.RESULT.path)
61+
5462
$(params.SCRIPT)

0 commit comments

Comments
 (0)