Merge "Sort views list jobs"
This commit is contained in:
commit
d90320440c
@ -144,6 +144,7 @@ class List(jenkins_jobs.modules.base.Base):
|
|||||||
XML.SubElement(jn_xml, 'comparator', {'class':
|
XML.SubElement(jn_xml, 'comparator', {'class':
|
||||||
'hudson.util.CaseInsensitiveComparator'})
|
'hudson.util.CaseInsensitiveComparator'})
|
||||||
if jobnames is not None:
|
if jobnames is not None:
|
||||||
|
jobnames = sorted(jobnames) # Job names must be sorted in the xml
|
||||||
for jobname in jobnames:
|
for jobname in jobnames:
|
||||||
XML.SubElement(jn_xml, 'string').text = str(jobname)
|
XML.SubElement(jn_xml, 'string').text = str(jobname)
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ filter-executors: true
|
|||||||
filter-queue: true
|
filter-queue: true
|
||||||
job-name:
|
job-name:
|
||||||
- job-name-1
|
- job-name-1
|
||||||
- job-name-2
|
|
||||||
- job-name-3
|
- job-name-3
|
||||||
|
- job-name-2
|
||||||
columns:
|
columns:
|
||||||
- status
|
- status
|
||||||
- weather
|
- weather
|
||||||
|
Loading…
Reference in New Issue
Block a user