Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pritidesai/401e420ff93746adb0e3147c614c45e9 to your computer and use it in GitHub Desktop.
Save pritidesai/401e420ff93746adb0e3147c614c45e9 to your computer and use it in GitHub Desktop.
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: when-expression-params-with-finally
spec:
pipelineSpec:
params:
- name: MESSAGE
default: "HI"
tasks:
- name: echo-message-1
taskSpec:
steps:
- name: echo
image: ubuntu
script: |
#!/usr/bin/env bash
echo "Hi!"
- name: echo-message-2
runAfter: [echo-message-1]
when:
- input: $(params.MESSAGE)
operator: notin
values: ["HI"]
taskSpec:
steps:
- name: echo
image: ubuntu
script: |
#!/usr/bin/env bash
echo "Hi!"
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment