Merge "fixed config format for nodejs plugin"

This commit is contained in:
Zuul 2018-05-16 09:24:48 +00:00 committed by Gerrit Code Review
commit 2c79678ae7
2 changed files with 7 additions and 4 deletions

View File

@ -1814,8 +1814,11 @@ def nodejs_installator(registry, xml_parent, data):
/../../tests/wrappers/fixtures/nodejs-installator001.yaml
"""
npm_node = XML.SubElement(xml_parent,
'jenkins.plugins.nodejs.tools.'
'NpmPackagesBuildWrapper')
'jenkins.plugins.nodejs.'
'NodeJSBuildWrapper')
version = registry.get_plugin_info('nodejs').get('version', '0')
npm_node.set("plugin", "nodejs@" + version)
mapping = [('name', 'nodeJSInstallationName', None)]
convert_mapping_to_xml(npm_node, data, mapping, fail_required=True)

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<buildWrappers>
<jenkins.plugins.nodejs.tools.NpmPackagesBuildWrapper>
<jenkins.plugins.nodejs.NodeJSBuildWrapper plugin="nodejs@0">
<nodeJSInstallationName>latest node</nodeJSInstallationName>
</jenkins.plugins.nodejs.tools.NpmPackagesBuildWrapper>
</jenkins.plugins.nodejs.NodeJSBuildWrapper>
</buildWrappers>
</project>