Skip to content

Instantly share code, notes, and snippets.

@pritidesai
Created September 11, 2020 22:32
Show Gist options
  • Save pritidesai/605f45336997d5a9ad37586d6558b1cb to your computer and use it in GitHub Desktop.
Save pritidesai/605f45336997d5a9ad37586d6558b1cb 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
when:
- input: $(params.MESSAGE)
operator: notin
values: ["HI"]
taskSpec:
steps:
- name: echo
image: ubuntu
script: |
#!/usr/bin/env bash
echo "Hi!"
finally:
- name: echo-message-2
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