Created
November 10, 2020 19:07
-
-
Save pritidesai/28765bd9e9191958f987924179a6f595 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: tekton.dev/v1beta1 | |
kind: ClusterTask | |
metadata: | |
name: result-task | |
spec: | |
results: | |
- name: sampleResult | |
description: Result | |
steps: | |
- name: write-result | |
image: gcr.io/google-containers/busybox:1.27 | |
script: | | |
#!/bin/sh | |
/bin/echo 'Result expected' > $(results.sampleResult.path) | |
exit 1 | |
--- | |
apiVersion: tekton.dev/v1beta1 | |
kind: TaskRun | |
metadata: | |
name: result-task-run | |
spec: | |
taskRef: | |
kind: ClusterTask | |
name: result-task |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment