code: def process_shell(self, creator, entry, config):
          
          self.logger.info("Processing Bash code: start")
  
          output = []
          shell = creator(entry, config)
          for line in shell.process():
              output.append(line)
              self.logger.info(" | %s", line)
  
          if shell.success:
              self.logger.info("Processing Bash code: finished")
              return {'success': True, 'output': output}
  
          for line in self.run_cleanup(config.env, shell.exit_code):
              output.append(line)
  
          self.logger.error("Pipeline has failed: leaving as soon as possible!")
          self.event.failed()
          return {'success': False, 'output': output}
docs: Processing a shell entry.