def maven_deploy(registry, xml_parent, data):
 p = XML.SubElement(xml_parent, 'hudson.maven.RedeployPublisher')
 if ('id' in data):
  XML.SubElement(p, 'id').text = data['id']
 if ('url' in data):
  XML.SubElement(p, 'url').text = data['url']
 XML.SubElement(p, 'uniqueVersion').text = str(data.get('unique-version', True)).lower()
 XML.SubElement(p, 'evenIfUnstable').text = str(data.get('deploy-unstable', False)).lower()
 if ('release-env-var' in data):
  XML.SubElement(p, 'releaseEnvVar').text = data['release-env-var']

def maven_deploy ( registry , xml_parent , data ) : p = XML . SubElement ( xml_parent , 'hudson.maven.RedeployPublisher' ) if ( 'id' in data ) : XML . SubElement ( p , 'id' ) . text = data [ 'id' ] if ( 'url' in data ) : XML . SubElement ( p , 'url' ) . text = data [ 'url' ] XML . SubElement ( p , 'uniqueVersion' ) . text = str ( data . get ( 'unique-version' , True ) ) . lower ( ) XML . SubElement ( p , 'evenIfUnstable' ) . text = str ( data . get ( 'deploy-unstable' , False ) ) . lower ( ) if ( 'release-env-var' in data ) : XML . SubElement ( p , 'releaseEnvVar' ) . text = data [ 'release-env-var' ]
yaml: maven-deploy deploy artifacts to maven repository .