Attempted a fix for the changelog generation, should print all builds back to 1 now.
This commit is contained in:
parent
54b3654eaa
commit
4da2992df5
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ def getBuildInfo(url):
|
||||||
file = urllib2.build_opener(handler).open(url)
|
file = urllib2.build_opener(handler).open(url)
|
||||||
data = file.read()
|
data = file.read()
|
||||||
file.close()
|
file.close()
|
||||||
data = ast.literal_eval(data)['builds']
|
data = ast.literal_eval(data)['allBuilds']
|
||||||
data = sorted(data, key=lambda key: key['number'], reverse=True)
|
data = sorted(data, key=lambda key: key['number'], reverse=True)
|
||||||
for build in data:
|
for build in data:
|
||||||
build['actions'] = filter(lambda act: act is not None, build['actions'])
|
build['actions'] = filter(lambda act: act is not None, build['actions'])
|
||||||
|
@ -48,7 +48,7 @@ def getBuildInfo(url):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def make_changelog(job_path, target_build, change_file, current_version=None):
|
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:" ]
|
log = [ "Changelog:" ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue