Implemented the Observer between the PipelineWrapper.groovy and its stages.