Last active
April 28, 2020 12:32
-
-
Save pt033302/0592fe9b31257d37e759131e33656ade to your computer and use it in GitHub Desktop.
This file contains hidden or 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: success | |
spec: | |
steps: | |
- args: | |
- 1s | |
command: | |
- sleep | |
image: busybox | |
name: '' | |
resources: {} | |
--- | |
apiVersion: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: timeout | |
spec: | |
steps: | |
- args: | |
- 10s | |
command: | |
- sleep | |
image: busybox | |
name: '' | |
resources: {} | |
--- | |
apiVersion: tekton.dev/v1beta1 | |
kind: Pipeline | |
metadata: | |
name: pipelinetasktimeout | |
spec: | |
tasks: | |
- name: pipelinetask1 | |
taskRef: | |
kind: Task | |
name: success | |
timeout: 1m0s | |
- name: pipelinetask2 | |
taskRef: | |
kind: Task | |
name: timeout | |
timeout: 5s | |
--- | |
apiVersion: tekton.dev/v1beta1 | |
kind: PipelineRun | |
metadata: | |
name: prtasktimeout | |
spec: | |
pipelineRef: | |
name: pipelinetasktimeout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment