1
0
Fork 0

ingore curretnly running job in report

This commit is contained in:
Mikhail Goncharov 2023-05-04 17:41:06 +02:00
parent 749193c8be
commit 7618688949

View file

@ -54,6 +54,9 @@ def process_build(bk: BuildkiteApi, build: benedict) -> Tuple[list[jobResult], b
job = benedict(job)
job_type = job.get('type')
logging.info(f'Processing job ID={job.get("id")}')
if job.get('id') == os.getenv("BUILDKITE_JOB_ID"):
logging.info("job ID matches current job, ignoring")
continue
job_state = job.get('state')
if job_type == 'waiter':
logging.info('job type is "waiter", ignoring')