def __exit__(self, type, value, traceback):
""" stop the running app and clean up """
conf = self.get_config()
playbook = os.path.join(directories.workspace, conf["teardown"]["ansible"])
self.subprocess.call([
"ansible-playbook", playbook
])
if traceback:
logging.error("PR Build failed")
logging.error(str(traceback))
logging.error(str(value))
tb.print_tb(traceback)
评论列表
文章目录