From 40c9b7442db800bee8c91b8e852cf96e5b1999b3 Mon Sep 17 00:00:00 2001 From: brb Date: Thu, 6 Jul 2023 15:53:34 +0200 Subject: [PATCH] added printing of content from runner script --- code/app.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/app.py b/code/app.py index 1b3cd86..26a93f4 100644 --- a/code/app.py +++ b/code/app.py @@ -6,7 +6,7 @@ import logging from typing import List import os -from utils import clone_repository +from utils import clone_repository, load_runner_script from setup_logging import setup_logging from gitea_request import GiteaRequest @@ -59,7 +59,10 @@ def handle_event(request: GiteaRequest): detail="no runner_script.yml in repository root" ) # load runner commands - + runner_script = load_runner_script(path=runner_script_path) + for pipeline_name, pipeline_step in runner_script.items(): + print(pipeline_name) + print(pipeline_step) # send response raise HTTPException(