From f807bcba88f7dc86c033eac15fa98f7e88443f5e Mon Sep 17 00:00:00 2001 From: Wim Lavrijsen Date: Wed, 11 Oct 2023 16:23:41 -0700 Subject: [PATCH] more debugging print for figuring out job number --- circleci.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/circleci.py b/circleci.py index 9c047f3d..88111563 100644 --- a/circleci.py +++ b/circleci.py @@ -69,6 +69,7 @@ def start_job( headers, ) res = conn.getresponse() + print("pipeline data:", res.read().decode("utf-8")) pipeline_data = json.loads(res.read().decode("utf-8")) time.sleep(1.0) @@ -103,12 +104,12 @@ def start_job( ) res = conn.getresponse() - print("conn response:\n", res.read().decode("utf-8")) - #job_data = json.loads(res.read().decode("utf-8")) + print("job data:\n", res.read().decode("utf-8")) + job_data = json.loads(res.read().decode("utf-8")) - #print(job_data) + print(job_data) - #print(job_data["items"][0]["job_number"]) + print(job_data["items"][0]["job_number"]) return 0