code: def update_environment_variables(self, filename):
          
          self.env.update(os.environ.copy())
          self.env.update({'PIPELINE_BASH_FILE': filename})
docs: Updating OS environment variables and current script path and filename.