def matrix_combinations_param(registry, xml_parent, data):
 element_name = 'hudson.plugins.matrix__configuration__parameter.MatrixCombinationsParameterDefinition'
 pdef = XML.SubElement(xml_parent, element_name)
 if ('name' not in data):
  raise JenkinsJobsException('matrix-combinations must have a name parameter.')
 XML.SubElement(pdef, 'name').text = data['name']
 XML.SubElement(pdef, 'description').text = data.get('description', '')
 combination_filter = data.get('filter')
 if combination_filter:
  XML.SubElement(pdef, 'defaultCombinationFilter').text = combination_filter
 return pdef

def matrix_combinations_param ( registry , xml_parent , data ) : element_name = 'hudson.plugins.matrix__configuration__parameter.MatrixCombinationsParameterDefinition' pdef = XML . SubElement ( xml_parent , element_name ) if ( 'name' not in data ) : raise JenkinsJobsException ( 'matrix-combinations must have a name parameter.' ) XML . SubElement ( pdef , 'name' ) . text = data [ 'name' ] XML . SubElement ( pdef , 'description' ) . text = data . get ( 'description' , '' ) combination_filter = data . get ( 'filter' ) if combination_filter : XML . SubElement ( pdef , 'defaultCombinationFilter' ) . text = combination_filter return pdef
yaml: matrix-combinations matrix combinations parameter requires the jenkins :jenkins-wiki:matrix combinations plugin <matrix+combinations+plugin> .