ingore curretnly running job in report
This commit is contained in:
parent
749193c8be
commit
7618688949
1 changed files with 3 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue