def artifactory(registry, xml_parent, data):
 artifactory = XML.SubElement(xml_parent, 'org.jfrog.hudson.ArtifactoryRedeployPublisher')
 helpers.artifactory_optional_props(artifactory, data, 'publishers')
 XML.SubElement(artifactory, 'matrixParams').text = ','.join(data.get('matrix-params', []))
 details = XML.SubElement(artifactory, 'details')
 helpers.artifactory_common_details(details, data)
 XML.SubElement(details, 'repositoryKey').text = data.get('release-repo-key', '')
 XML.SubElement(details, 'snapshotsRepositoryKey').text = data.get('snapshot-repo-key', '')
 plugin = XML.SubElement(details, 'stagingPlugin')
 XML.SubElement(plugin, 'pluginName').text = 'None'
 helpers.artifactory_deployment_patterns(artifactory, data)
 helpers.artifactory_env_vars_patterns(artifactory, data)

def artifactory ( registry , xml_parent , data ) : artifactory = XML . SubElement ( xml_parent , 'org.jfrog.hudson.ArtifactoryRedeployPublisher' ) helpers . artifactory_optional_props ( artifactory , data , 'publishers' ) XML . SubElement ( artifactory , 'matrixParams' ) . text = ',' . join ( data . get ( 'matrix-params' , [ ] ) ) details = XML . SubElement ( artifactory , 'details' ) helpers . artifactory_common_details ( details , data ) XML . SubElement ( details , 'repositoryKey' ) . text = data . get ( 'release-repo-key' , '' ) XML . SubElement ( details , 'snapshotsRepositoryKey' ) . text = data . get ( 'snapshot-repo-key' , '' ) plugin = XML . SubElement ( details , 'stagingPlugin' ) XML . SubElement ( plugin , 'pluginName' ) . text = 'None' helpers . artifactory_deployment_patterns ( artifactory , data ) helpers . artifactory_env_vars_patterns ( artifactory , data )
yaml: artifactory uses/requires the artifactory plugin to deploy artifacts to artifactory server .