From 4da2992df583a6f50bfa6c7188b2868ad6d45a1a Mon Sep 17 00:00:00 2001 From: LexManos Date: Wed, 24 Apr 2013 10:49:33 -0700 Subject: [PATCH] Attempted a fix for the changelog generation, should print all builds back to 1 now. --- changelog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.py b/changelog.py index c2da5e835e..63278a9490 100644 --- a/changelog.py +++ b/changelog.py @@ -30,7 +30,7 @@ def getBuildInfo(url): file = urllib2.build_opener(handler).open(url) data = file.read() file.close() - data = ast.literal_eval(data)['builds'] + data = ast.literal_eval(data)['allBuilds'] data = sorted(data, key=lambda key: key['number'], reverse=True) for build in data: build['actions'] = filter(lambda act: act is not None, build['actions']) @@ -48,7 +48,7 @@ def getBuildInfo(url): return data def make_changelog(job_path, target_build, change_file, current_version=None): - builds = getBuildInfo('%s/api/python?tree=builds[number,actions[text],changeSet[items[author[fullName],comment]]]&pretty=true' % job_path) + builds = getBuildInfo('%s/api/python?tree=allBuilds[number,actions[text],changeSet[items[author[fullName],comment]]]&pretty=true' % job_path) log = [ "Changelog:" ]