Fix 'block-level' Build Blocker Plugin Property

In the process of taking advantage of 'convert_mapping_to_xml()',
commit:7ebe78979166e36a038a116788c33383878ced20 renamed 'block-level' to
'blocking-level' in the build-blocker property.

Another unrelated commit modified the test to use 'block_level' instead
of 'block-level'.

Change-Id: I2dd642ec4966c4c48e0a35e986a69b3b74803358
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
This commit is contained in:
Trevor Bramwell 2018-10-04 14:54:40 -07:00
parent 20f561c55d
commit 7f51d01631
No known key found for this signature in database
GPG Key ID: A7BE1946ACC75042
3 changed files with 3 additions and 3 deletions

View File

@ -613,7 +613,7 @@ def build_blocker(registry, xml_parent, data):
mapping = [
('use-build-blocker', 'useBuildBlocker', True),
('', 'blockingJobs', jobs),
('blocking-level', 'blockLevel', 'GLOBAL', block_level_types),
('block-level', 'blockLevel', 'GLOBAL', block_level_types),
('queue-scanning', 'scanQueueFor', 'DISABLED', queue_scan_types),
]
helpers.convert_mapping_to_xml(blocker, data, mapping, fail_required=True)

View File

@ -5,7 +5,7 @@
<useBuildBlocker>true</useBuildBlocker>
<blockingJobs>.*-deploy
^maintenance.*</blockingJobs>
<blockLevel>GLOBAL</blockLevel>
<blockLevel>NODE</blockLevel>
<scanQueueFor>BUILDABLE</scanQueueFor>
</hudson.plugins.buildblocker.BuildBlockerProperty>
</properties>

View File

@ -4,5 +4,5 @@ properties:
blocking-jobs:
- ".*-deploy"
- "^maintenance.*"
block_level: 'GLOBAL'
block-level: 'NODE'
queue-scanning: 'BUILDABLE'