Skip to content

Commit

Permalink
Fix bug in jenkins handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaigh0 committed May 29, 2024
1 parent 713f81b commit 3d27149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jenkins_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_all_builds_after_timestamp(self, job_name: str, time_stamp: int) -> List
for build in self.server.get_job_info(job_name)['builds']:
build_info = self.server.get_build_info(job_name, build['number'])
if not build_info['inProgress'] and build_info['timestamp'] > time_stamp and build_info['result'] != 'ABORTED':
build.append(build['number'], str(build_info['timestamp']))
builds.append((build['number'], str(build_info['timestamp'])))
builds_output = '\n'.join([f'{number} at {finish}' for number, finish in builds])
logger.info(f"Found {len(builds)} more builds to ingest\n{builds_output}")
return builds
Expand Down

0 comments on commit 3d27149

Please sign in to comment.