Skip to content

Commit 1706b54

Browse files
Merge branch 'Added_start_time' of https://github.com/alokgoswami-ag/ci-monitoring-automation into Added_start_time
2 parents e798cb9 + bda5f78 commit 1706b54

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

monitor.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ def fetch_build_time(build):
5757
response = requests.get(url, verify=False, timeout=15)
5858
<<<<<<< HEAD
5959
<<<<<<< HEAD
60+
<<<<<<< HEAD
61+
=======
62+
>>>>>>> bda5f78984b42b731fd1a4f79116b750d77c7576
6063
if response.status_code == 200:
6164
buildtime = json.loads(response.text)
6265
timestamp_str = buildtime["metadata"]["creationTimestamp"]
@@ -75,6 +78,7 @@ def fetch_build_time(build):
7578
else:
7679
return 'ERROR'
7780

81+
<<<<<<< HEAD
7882
=======
7983
response.raise_for_status() # Raise exception for non-200 responses
8084

@@ -105,6 +109,8 @@ def fetch_build_time(build):
105109
>>>>>>> 2464102 (Added Time in both brief and detailed output)
106110
=======
107111
>>>>>>> 342858c (address comment)
112+
=======
113+
>>>>>>> bda5f78984b42b731fd1a4f79116b750d77c7576
108114

109115
except requests.Timeout:
110116
return "Request timed out", None
@@ -1356,6 +1362,7 @@ def get_detailed_job_info(build_list,prow_ci_name,zone=None):
13561362

13571363
print(i,"Job link:"+constants.JOB_LINK_URL+build)
13581364
<<<<<<< HEAD
1365+
<<<<<<< HEAD
13591366
<<<<<<< HEAD
13601367
print("Build start time: "+time +" "+date)
13611368
=======
@@ -1364,6 +1371,9 @@ def get_detailed_job_info(build_list,prow_ci_name,zone=None):
13641371
=======
13651372
print("Build start time: "+time +" "+date)
13661373
>>>>>>> 342858c (address comment)
1374+
=======
1375+
print("Build start time: "+time +" "+date)
1376+
>>>>>>> bda5f78984b42b731fd1a4f79116b750d77c7576
13671377

13681378
build_status = check_job_status(build)
13691379
sensitive_info_expose_status=check_if_sensitive_info_exposed(build)

0 commit comments

Comments
 (0)