added printing of content from runner script

This commit is contained in:
brb
2023-07-06 15:53:34 +02:00
parent c1aa6f3c41
commit 40c9b7442d
+5 -2
View File
@@ -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(