scripts/jenkins-gerrit: sort jobs list

Having two debian entries in there in random order looks weird so sort
the job lists.

Change-Id: I795f821783b52a6a9cd1967d33f67b656efccf22
This commit is contained in:
Oliver Smith 2023-07-28 11:10:10 +02:00 committed by osmith
parent 56b1633d8b
commit 592c48ac76
1 changed files with 3 additions and 3 deletions

View File

@ -171,10 +171,10 @@ def get_job_short_name(job):
def get_jobs_list_str(jobs):
ret = ""
lines = []
for job in jobs:
ret += f"* [{get_job_short_name(job)}] {job['url']}/consoleFull\n"
return ret
lines += [f"* [{get_job_short_name(job)}] {job['url']}/consoleFull\n"]
return "".join(sorted(lines))
def get_comment_result(build_url, notify_on_success):