Replies: 1 comment 2 replies
-
👋🏾 you can use common expression language to evaluate complex expressions through custom tasks -- the evaluation results can then be used in whenexpressions in subsequent tasks: https://github.com/tektoncd/experimental/tree/main/cel that should work for the use case you described above, please share any feedback on cel custom tasks as we're iterating on it to add more context, we want to keep whenexpressions simple and delegate the complex expressions to an expression language (don't want to implement our own expression language) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Sometimes in my pipelines I feel the need to specify complex when conditions. For example running a task if ( the branch is develop AND a new commit has been pushed) OR (the branch is master and a new tag was created).
As far as I understood when expressions support only AND for now. My only solution at the moment is to create two tasks and apply each condition branch to one of them. It works but it is not the most elegant solution I would say.
Are there any plans to improve the when expressions in the future?.
Thanks,
Giovanni
Beta Was this translation helpful? Give feedback.
All reactions