Last active
June 5, 2020 19:51
-
-
Save pritidesai/282d05d61dab53910930b0a30d0282d3 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: Task | |
metadata: | |
name: failure-task | |
spec: | |
steps: | |
- name: fail | |
image: ubuntu | |
script: exit 1 | |
--- | |
apiVersion: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: successful-task-10 | |
spec: | |
steps: | |
- name: success | |
image: ubuntu | |
script: | | |
sleep 10; | |
exit 0 | |
--- | |
apiVersion: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: successful-task-20 | |
spec: | |
steps: | |
- name: success | |
image: ubuntu | |
script: | | |
sleep 20; | |
exit 0 | |
--- | |
apiVersion: tekton.dev/v1beta1 | |
kind: Pipeline | |
metadata: | |
name: pipeline-one-failure-two-success | |
spec: | |
tasks: | |
- name: task-a | |
taskRef: | |
Name: failure-task | |
- name: task-b | |
taskRef: | |
Name: successful-task-10 | |
- name: task-c | |
taskRef: | |
Name: successful-task-20 | |
--- | |
apiVersion: tekton.dev/v1beta1 | |
kind: PipelineRun | |
metadata: | |
name: pipelinerun-one-failure-two-success | |
spec: | |
pipelineRef: | |
name: pipeline-one-failure-two-success |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment