Pass variables between steps
- Last UpdatedApr 08, 2026
- 1 minute read
Passing data between different steps of the Execution Pipeline is achieved by adding parameter data to, and then updating the data in, an IStepContext interface passed between steps (refer to the IStepContext class documentation in the Execution Pipeline Application Programming Interface [API] Reference).
Each type of Execution Pipeline instance has its own implementation of the IStepContext interface. For example, the Krunch Pipeline instance of an Execution Pipeline has a KrunchContext implementation of the interface. The implementation used will therefore depend upon the type of Execution Pipeline being executed.
When implementing a step, an IStepContext is provided as an input parameter. The IStepContext will need to be cast to the appropriate implementation of the IStepContext interface for your pipeline. For implementation details and code samples for passing data between steps for your pipeline scenario, refer to the documentation for your Execution Pipeline instance.