added printing of content from runner script
This commit is contained in:
+5
-2
@@ -6,7 +6,7 @@ import logging
|
|||||||
from typing import List
|
from typing import List
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from utils import clone_repository
|
from utils import clone_repository, load_runner_script
|
||||||
from setup_logging import setup_logging
|
from setup_logging import setup_logging
|
||||||
from gitea_request import GiteaRequest
|
from gitea_request import GiteaRequest
|
||||||
|
|
||||||
@@ -59,7 +59,10 @@ def handle_event(request: GiteaRequest):
|
|||||||
detail="no runner_script.yml in repository root"
|
detail="no runner_script.yml in repository root"
|
||||||
)
|
)
|
||||||
# load runner commands
|
# 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
|
# send response
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
|
|||||||
Reference in New Issue
Block a user