Created
March 13, 2020 11:45
-
-
Save afrittoli/f71e0cdbbfcc28c1c99fa16bd33142d4 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/v1alpha1 | |
kind: TaskRun | |
metadata: | |
generateName: a-task-to-reproduce-tekton-pipelines-issue-2029- | |
spec: | |
taskSpec: | |
outputs: | |
resources: | |
- name: pr | |
type: pullRequest | |
- name: ci | |
type: image | |
- name: notification | |
type: cloudEvent | |
steps: | |
- name: this-step-does-something-it-sleeps-30-seconds | |
image: busybox | |
script: | | |
#!/bin/sh | |
set -ex | |
echo "Wait for a bit" | |
sleep 30 | |
- name: fail | |
image: busybox | |
script: | | |
#!/bin/sh | |
set -ex | |
echo "This fails" | |
false | |
- name: never-runs | |
image: busybox | |
script: | | |
#!/bin/sh | |
set -ex | |
echo "I never get to run" | |
outputs: | |
resources: | |
- name: pr | |
resourceSpec: | |
type: pullRequest | |
params: | |
- name: url | |
value: https://github.com/tektoncd/pipeline/pull/100 | |
- name: ci | |
resourceSpec: | |
type: image | |
params: | |
- name: url | |
value: fake-registry/test/fake-image | |
- name: notification | |
resourceSpec: | |
type: cloudEvent | |
params: | |
- name: targetURI | |
value: http://el-pipeline-release-post-processing.default.svc.cluster.local:8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment