mirror of https://gerrit.osmocom.org/osmo-ci
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:
parent
56b1633d8b
commit
592c48ac76
|
@ -171,10 +171,10 @@ def get_job_short_name(job):
|
||||||
|
|
||||||
|
|
||||||
def get_jobs_list_str(jobs):
|
def get_jobs_list_str(jobs):
|
||||||
ret = ""
|
lines = []
|
||||||
for job in jobs:
|
for job in jobs:
|
||||||
ret += f"* [{get_job_short_name(job)}] {job['url']}/consoleFull\n"
|
lines += [f"* [{get_job_short_name(job)}] {job['url']}/consoleFull\n"]
|
||||||
return ret
|
return "".join(sorted(lines))
|
||||||
|
|
||||||
|
|
||||||
def get_comment_result(build_url, notify_on_success):
|
def get_comment_result(build_url, notify_on_success):
|
||||||
|
|
Loading…
Reference in New Issue