Created
September 11, 2020 22:44
-
-
Save pritidesai/5d496730976d30e4f4f523d60aba7d5e 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-9 | |
spec: | |
pipelineSpec: | |
tasks: | |
- name: echo-message-1 | |
taskSpec: | |
results: | |
- name: message | |
steps: | |
- name: echo | |
image: ubuntu | |
script: | | |
#!/usr/bin/env bash | |
echo -n "HI" | tee $(results.message.path) | |
- name: echo-message-2 | |
when: | |
- input: $(tasks.echo-message-1.results.message) | |
operator: notin | |
values: ["HI"] | |
taskSpec: | |
steps: | |
- name: echo | |
image: ubuntu | |
script: | | |
#!/usr/bin/env bash | |
echo "Hi!" | |
finally: | |
- name: echo-message-3 | |
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