def jclouds(registry, xml_parent, data):
 deployer = XML.SubElement(xml_parent, 'jenkins.plugins.jclouds.blobstore.BlobStorePublisher')
 if ('profile' not in data):
  raise JenkinsJobsException('profile parameter is missing')
 XML.SubElement(deployer, 'profileName').text = data.get('profile')
 entries = XML.SubElement(deployer, 'entries')
 deployer_entry = XML.SubElement(entries, 'jenkins.plugins.jclouds.blobstore.BlobStoreEntry')
 try:
  XML.SubElement(deployer_entry, 'container').text = data['container']
  XML.SubElement(deployer_entry, 'path').text = data.get('basedir', '')
  XML.SubElement(deployer_entry, 'sourceFile').text = data['files']
 except KeyError as e:
  raise JenkinsJobsException(("blobstore requires '%s' to be set" % e.args[0]))
 XML.SubElement(deployer_entry, 'keepHierarchy').text = str(data.get('hierarchy', False)).lower()

def jclouds ( registry , xml_parent , data ) : deployer = XML . SubElement ( xml_parent , 'jenkins.plugins.jclouds.blobstore.BlobStorePublisher' ) if ( 'profile' not in data ) : raise JenkinsJobsException ( 'profile parameter is missing' ) XML . SubElement ( deployer , 'profileName' ) . text = data . get ( 'profile' ) entries = XML . SubElement ( deployer , 'entries' ) deployer_entry = XML . SubElement ( entries , 'jenkins.plugins.jclouds.blobstore.BlobStoreEntry' ) try : XML . SubElement ( deployer_entry , 'container' ) . text = data [ 'container' ] XML . SubElement ( deployer_entry , 'path' ) . text = data . get ( 'basedir' , '' ) XML . SubElement ( deployer_entry , 'sourceFile' ) . text = data [ 'files' ] except KeyError as e : raise JenkinsJobsException ( ( "blobstore requires '%s' to be set" % e . args [ 0 ] ) ) XML . SubElement ( deployer_entry , 'keepHierarchy' ) . text = str ( data . get ( 'hierarchy' , False ) ) . lower ( )
yaml: jclouds jclouds cloud storage settings provides a way to store artifacts on jclouds supported storage providers .