public void prepareBatchContext ( BatchContextImpl batchContext ) { PipeBatch pipeBatch = batchContext . getPipeBatch ( ) ; // Start stage in the pipe batch and persist reference to batch maker in the batch context BatchMakerImpl batchMaker = pipeBatch . startStage ( this ) ; batchContext . setBatchMaker ( batchMaker ) ; batchContext . setOriginStageName ( getStage ( ) . getInfo ( ) . getInstanceName ( ) , getStage ( ) . getInfo ( ) . getLabel ( ) ) ; }
Called by PipelineRunner when push origin started a new batch to prepare context for it .