Sort views list jobs

Change-Id: I27613393fd423fb514e9adfa44db7f12c5249b52
This commit is contained in:
Andrew Mellen 2018-04-12 11:38:16 -04:00
parent b72235c462
commit f95db7c756
2 changed files with 2 additions and 1 deletions

View File

@ -144,6 +144,7 @@ class List(jenkins_jobs.modules.base.Base):
XML.SubElement(jn_xml, 'comparator', {'class':
'hudson.util.CaseInsensitiveComparator'})
if jobnames is not None:
jobnames = sorted(jobnames) # Job names must be sorted in the xml
for jobname in jobnames:
XML.SubElement(jn_xml, 'string').text = str(jobname)

View File

@ -5,8 +5,8 @@ filter-executors: true
filter-queue: true
job-name:
- job-name-1
- job-name-2
- job-name-3
- job-name-2
columns:
- status
- weather