Default groovy-postbuild to newest plugin format
Change-Id: I82747a5579c081b524363aa97281ae6d65d8c21d Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
This commit is contained in:
parent
f2b01f7c5c
commit
eed6249098
|
@ -27,6 +27,7 @@ the build is complete.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
import sys
|
||||||
import xml.etree.ElementTree as XML
|
import xml.etree.ElementTree as XML
|
||||||
|
|
||||||
import six
|
import six
|
||||||
|
@ -2444,7 +2445,9 @@ def groovy_postbuild(registry, xml_parent, data):
|
||||||
}
|
}
|
||||||
# There are incompatible changes, we need to know version
|
# There are incompatible changes, we need to know version
|
||||||
info = registry.get_plugin_info('groovy-postbuild')
|
info = registry.get_plugin_info('groovy-postbuild')
|
||||||
version = pkg_resources.parse_version(info.get('version', "0"))
|
# Note: Assume latest version of plugin is preferred config format
|
||||||
|
version = pkg_resources.parse_version(
|
||||||
|
info.get('version', str(sys.maxsize)))
|
||||||
# Version specific predicates
|
# Version specific predicates
|
||||||
matrix_parent_support = version >= pkg_resources.parse_version("1.9")
|
matrix_parent_support = version >= pkg_resources.parse_version("1.9")
|
||||||
security_plugin_support = version >= pkg_resources.parse_version("2.0")
|
security_plugin_support = version >= pkg_resources.parse_version("2.0")
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
- longName: 'Groovy Postbuild'
|
||||||
|
shortName: 'groovy-postbuild'
|
||||||
|
version: "1.0"
|
|
@ -0,0 +1,3 @@
|
||||||
|
- longName: 'Groovy Postbuild'
|
||||||
|
shortName: 'groovy-postbuild'
|
||||||
|
version: "1.0"
|
Loading…
Reference in New Issue