Skip to content

Instantly share code, notes, and snippets.

@pritidesai
Created November 10, 2020 19:07
Show Gist options
  • Save pritidesai/28765bd9e9191958f987924179a6f595 to your computer and use it in GitHub Desktop.
Save pritidesai/28765bd9e9191958f987924179a6f595 to your computer and use it in GitHub Desktop.
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