Skip to content

Commit

Permalink
more debugging print for figuring out job number
Browse files Browse the repository at this point in the history
  • Loading branch information
wlav committed Oct 11, 2023
1 parent 3b7f69a commit f807bcb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions circleci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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


Expand Down

0 comments on commit f807bcb

Please sign in to comment.