Created
September 11, 2020 22:32
-
-
Save pritidesai/605f45336997d5a9ad37586d6558b1cb 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/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