argo-workflows icon indicating copy to clipboard operation
argo-workflows copied to clipboard

when: condition on outputs.artifact is false

Open tooptoop4 opened this issue 2 years ago • 6 comments

when: "'{{steps.parse-messages-split.outputs.artifacts.dag-name}}' == snow"

this never gets matched

but

when: "{{steps.parse-messages-split.outputs.result}} == snow"

does get matched (even though the value in the artifact and echoed in the step result are same.

argowf version 3.2.9

tooptoop4 avatar Apr 06 '22 08:04 tooptoop4

could you add the smallest possible workflow to reproduce the bug?

Hunter-Thompson avatar Apr 06 '22 08:04 Hunter-Thompson

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 02:04 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.

stale[bot] avatar Apr 30 '22 14:04 stale[bot]

@tooptoop4 you can't reference the Artifacts content in when condition. The workflow controller doesn't have permission to access the artifact content. There is a workaround you can add one more step in between to stdout the artifact content and reference intermediate steps.output.result

sarabala1979 avatar May 04 '22 18:05 sarabala1979

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.

stale[bot] avatar Jun 18 '22 23:06 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.

stale[bot] avatar Jul 31 '22 04:07 stale[bot]

This issue has been closed due to inactivity. Feel free to re-open if you still encounter this issue.

stale[bot] avatar Aug 12 '22 12:08 stale[bot]

@sarabala1979 @alexec can this be added to the docs?

tooptoop4 avatar Sep 26 '22 15:09 tooptoop4