Access priority sorter plugin info via short name
In [version 2.0](8f2ae302bd
)
of the priority sorter plugin, the long name of the plugin was renamed
to "Jenkins Priority Sorter Plugin", which broke the `priority_sorter`
function in the `properties` module.
The short name did not change, so we now use that instead to ensure
that we generate a configuration that matches the latest required by
the plugin.
Change-Id: I89a8fdabeac63ea482b3b1bd8ddf2dd83c1c7435
Task: 3112
Story: 2000655
This commit is contained in:
parent
92f28a591e
commit
14ac6e9850
@ -507,7 +507,7 @@ def priority_sorter(registry, xml_parent, data):
|
||||
/../../tests/properties/fixtures/priority_sorter002.yaml
|
||||
:language: yaml
|
||||
"""
|
||||
plugin_info = registry.get_plugin_info('Priority Sorter Plugin')
|
||||
plugin_info = registry.get_plugin_info('PrioritySorter')
|
||||
version = pkg_resources.parse_version(plugin_info.get('version', '0'))
|
||||
|
||||
if version >= pkg_resources.parse_version("2.0"):
|
||||
|
@ -1,3 +1,3 @@
|
||||
- longName: 'Priority Sorter Plugin'
|
||||
- longName: 'Jenkins Priority Sorter Plugin'
|
||||
shortName: 'PrioritySorter'
|
||||
version: '2.0'
|
||||
|
Loading…
x
Reference in New Issue
Block a user