New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditional tasks #53
Comments
Thinking a while about the topic I decided not to use Python and eval because I would like to avoid that somebody does someting else but a simple and readable condition. Also I don't want to write a complex parser for any condition because conditions should be simple and readable. With this I came to following ideas about what should be supported:
Of course model and env are supported too. However those formats can be validated via the schema also it's just a pre-validation because env and variable can be dynamically defined when the pipeline is running. Final validation and evaluation happens on each task only. So here are some bad examples:
I will not allow to use Jinja2 filters otherwise I would allow execution of code. |
I decided not to use regex since the regex expressions got too complicated. The tokenizing is simply |
Most implemented (condition, validation and usage). |
Considering that the pipeline uploads/deploys something this usually will happen on concrete branches only. As an example in some projects using Git the branch master is used as main line. Each time a pull request gets merged there a successful build should provide artifacts somewhere. The next task snippet could be the way to do it:
The text was updated successfully, but these errors were encountered: