UNPKG

jenkins-cli-node

Version:
22 lines 695 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _1 = require("."); // hudson.model.ChoiceParameterDefinition exports.getParametersByRadio = (config) => { return { type: _1.ParameterType.radio, key: config.name, value: config.choices, description: config.description, }; }; // com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition exports.getParametersByCheckbox = (configs) => { return configs.map(k => ({ type: _1.ParameterType.checkbox, key: k.name, description: k.description, value: k.value || [] })); }; //# sourceMappingURL=plugin.js.map