def artifactory_maven(registry, xml_parent, data):
 artifactory = XML.SubElement(xml_parent, 'org.jfrog.hudson.maven3.ArtifactoryMaven3NativeConfigurator')
 details = XML.SubElement(artifactory, 'details')
 artifactory_common_details(details, data)
 if ('repo-key' in data):
  XML.SubElement(details, 'downloadRepositoryKey').text = data['repo-key']
 else:
  XML.SubElement(details, 'downloadSnapshotRepositoryKey').text = data.get('snapshot-repo-key', '')
  XML.SubElement(details, 'downloadReleaseRepositoryKey').text = data.get('release-repo-key', '')

def artifactory_maven ( registry , xml_parent , data ) : artifactory = XML . SubElement ( xml_parent , 'org.jfrog.hudson.maven3.ArtifactoryMaven3NativeConfigurator' ) details = XML . SubElement ( artifactory , 'details' ) artifactory_common_details ( details , data ) if ( 'repo-key' in data ) : XML . SubElement ( details , 'downloadRepositoryKey' ) . text = data [ 'repo-key' ] else : XML . SubElement ( details , 'downloadSnapshotRepositoryKey' ) . text = data . get ( 'snapshot-repo-key' , '' ) XML . SubElement ( details , 'downloadReleaseRepositoryKey' ) . text = data . get ( 'release-repo-key' , '' )
yaml: artifactory-maven wrapper for non-maven projects .