Created
September 14, 2020 05:28
-
-
Save pritidesai/401e420ff93746adb0e3147c614c45e9 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 | |
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