A pipeline state is persistent for all runs of the same pipeline. Information stored by a step during a pipeline's run is available to subsequent runs of that pipeline.
Note
To preserve state across pipelines, you may use the utility functions for pipeline state management.
Pipelines supports two types of run state information that can be preserved between steps.
Key-Value Pairs
Using the add_pipeline_variables
utility function, you can store a key-value pair to the pipeline state. That key-value pair will automatically be available to all subsequent runs as an environment variable.
Files
Using the add_pipeline_files
utility function, a step can store a file to the pipeline state. Any step can then use the restore_pipeline_files
function to retrieve the file from the pipeline state.