Hello there. While trying to rework one of our pipelines I got to the idea of potentially using the
if block on some of the steps. However from reading the documentation I was unable to ascertain the exact semantics of the bloc, most notably when it comes to evaluation order and the time of evaluation of the condition.
The documentation does not indicate whether the specified conditions are evaluated:
- when the job is uploaded.
- whenever an event occurs that could put the job in a runnable state (e.g a depends_on step succeeds, etc).
- any other point in time.
This is most important because the evaluation context will determine whether something like a specific environment variable might be set yet (e.g via meta-data) or not, which seems to indicate that the evaluation happens at upload time.
The closest indication I have found until now is here on the forum in this post.
Would it be possible to get some clarifications on this, and to update the documentation accordingly? That would be really helpful for the next person to come along with the same ideas I was entertaining for a pipeline.