miltolstoy

Results 6 comments of miltolstoy

Preliminary development plan was created during the task discussion: 1. Step(..., if_succeeded=..., if_failed=...) 2. ? Step -> If / IfStep / ConditionalStep 3. ? ConditionalStep(...).then(...).else(...) 4. ? conditional_step >> then...

The current problem can be solved by https://github.com/Samsung/Universum/pull/713, but a more general fix is needed to solve all similar situations (like https://github.com/Samsung/Universum/issues/703). **Root issue** - subparser arguments override main parser...

Resolved by https://github.com/Samsung/Universum/pull/718 ``` from universum.configuration_support import Configuration, Step step_artifacts = Configuration([dict(name="Step with artifacts", command=["touch", "artifact1"], artifacts="artifact1")]) configs = step_artifacts ``` ``` 5. Executing build steps | 5.1. [ 1/1...

Here is another proposal, which will allow building more complex scenarios. Pseudo-code follows: ``` class ConditionalConfig: self.success_branch_step self.failed_branch_step regular_step = Step(...) success_branch_step = Step(...) failed_branch_step = Step(...) // can be...

**Minimalistic test config**: ``` condition_step = Configuration([dict(name="Condition step", command=["./test.sh"])]) false_branch_step = Configuration([dict(name="False branch step", command=["echo $?"])]) configs = condition_step + false_branch_step ``` **Desired scenario**: launch `false_branch_step` only if the `condition_step`...

Let's continue conditional steps discussion under https://github.com/Samsung/Universum/issues/709.