Skip to content
Snippets Groups Projects
Commit 51e528c7 authored by felmer's avatar felmer
Browse files

add log for Jenkins API call

SVN: 36778
parent 787b7d67
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,9 @@ class JenkinsArtifactRepository(ArtifactRepository):
Downloads the requested artifact from Jenkins. It uses the Jenkins API.
"""
projectUrl = "%s/job/%s" % (self.baseUrl, project)
handle = urllib.urlopen("%s/lastSuccessfulBuild/api/xml?xpath=//artifact&wrapper=bag" % projectUrl)
apiUrl = "%s/lastSuccessfulBuild/api/xml?xpath=//artifact&wrapper=bag" % projectUrl
printAndFlush("Get artifact info from %s" % apiUrl)
handle = urllib.urlopen(apiUrl)
url = None
fileName = None
dom = xml.dom.minidom.parseString(handle.read())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment