additional_xml = None if deployableXml and deployableXmlUrl: print "deployableXml and deployableXmlUrl are both set. deployableXmlUrl takes precedence" if deployableXmlUrl: additional_xml = get_additional_xml_from_url(deployableXmlUrl) elif deployableXml: additional_xml = deployableXml additional_xml = well_formed_xml(additional_xml) server = DarBuildServer.createServer(darBuildServer) # do the xml bit manifest = server.read_manifest(appName, appVersion) #translate the string in to an element tree manifest_root = ET.fromstring(manifest) # check if the stuff where about to add actually exists if checkArtifactAvailability: if check_available(deployableUrl): print "artifact exists, moving on" else: print "artifact does not exist, existing" sys.exit(2)
import sys, time, ast from java.lang import String from java.util import Arrays from lm.DarBuildServer import DarBuildServer server = DarBuildServer.createServer(darBuildServer) response = server.delete_workspace(appName, appVersion) server.closeConnection()