flosell / lambdacd

a library to define a continuous delivery pipeline in code
https://www.lambda.cd/
Apache License 2.0
677 stars 59 forks source link

nil in pipeline-structure breaks step-id calculation leading to mismatches in the UI #172

Closed flosell closed 7 years ago

flosell commented 7 years ago

Steps to reproduce.

screen shot 2017-10-30 at 23 17 02

Possible Reasons:

The nil value in the pipeline structure gets filtered out when creating the representation the UI uses but is not filtered when the pipeline gets executed. In the example. create-some-details would be the first child of with-frontend-git in the UI representation but the second child when it comes to calculating the step-id on execution (meaning state will also be written with these step-ids)

Where does this happen in practice?

If you want to create several pipelines from the same structure you might use conditionals that evaluate to nil if not needed in this particular pipeline:

~(when use-trigger?
     `(alias "trigger"
        wait-for-manual-trigger))
flosell commented 7 years ago

Released in 0.13.4