diff --git a/task/openshift-client/0.2/openshift-client.yaml b/task/openshift-client/0.2/openshift-client.yaml index ef1fdf7390..732d9c7d98 100644 --- a/task/openshift-client/0.2/openshift-client.yaml +++ b/task/openshift-client/0.2/openshift-client.yaml @@ -38,6 +38,12 @@ spec: description: The OpenShift Version to use type: string default: "4.7" + + results: + - name: RESULT + 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 + type: string + steps: - name: oc image: quay.io/openshift/origin-cli:$(params.VERSION) @@ -50,5 +56,7 @@ spec: [[ "$(workspaces.kubeconfig-dir.bound)" == "true" ]] && \ [[ -f $(workspaces.kubeconfig-dir.path)/kubeconfig ]] && \ export KUBECONFIG=$(workspaces.kubeconfig-dir.path)/kubeconfig - + + echo "" > $(results.RESULT.path) + $(params.SCRIPT)