The runner can decide whether to dispatch script build stages as a step or a script

Problem

Runner build stages will be gradually replaced by steps. Roll-out will be incremental (do be determined) and use a feature flag, so the runner will need to choose whether to run a build stage as a script or a step.

Proposal

Choose where is the best place to dispatch build stages as scripts or steps. Replacing the range b.Steps in Build.executeScript has been suggested as a possible location. Create a feature flag that decides whether steps runs or not.

It is the responsibility of this issue to dispatch build stages to steps, creating any actual steps is the responsibility of separate issues.

Edited by Cameron Swords