diff --git a/retaliation.py b/retaliation.py index 763c829..571ef42 100755 --- a/retaliation.py +++ b/retaliation.py @@ -288,15 +288,15 @@ def read_url(url): return urllib2.urlopen(request).read() -def jenkins_get_responsible_user(job_name): +def jenkins_get_responsible_user(job_url): # Call back to Jenkins and determin who broke the build. (Hacky) # We do this by crudly parsing the changes on the last failed build - changes_url = JENKINS_SERVER + "/job/" + job_name + "/lastFailedBuild/changes" + changes_url = JENKINS_SERVER + "/" + job_url + "lastFailedBuild/changes" changedata = read_url(changes_url) # Look for the /user/[name] link - m = re.compile('/user/([^/"]+)').search(changedata) + m = re.compile('by