Skip to content

Instantly share code, notes, and snippets.

@afrittoli
Created March 13, 2020 12:05
Show Gist options
  • Save afrittoli/fa3a650ef9adcb63f03870aa1955309a to your computer and use it in GitHub Desktop.
Save afrittoli/fa3a650ef9adcb63f03870aa1955309a to your computer and use it in GitHub Desktop.
apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
generateName: a-pipeline-to-reproduce-issue-2029-
spec:
pipelineSpec:
resources:
- name: pr
type: pullRequest
- name: ci
type: image
- name: notification
type: cloudEvent
tasks:
- name: first-and-only-task
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"
resources:
outputs:
- name: pr
resource: pr
- name: ci
resource: ci
- name: notification
resource: notification
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