# except, the existing tag uses the same commit as we were triggered with
# FIXME: tagging only works for squeeze this way, change it to make it multipledist compatible
remote_tag = [tag for tag in gitrepo.tags if tag.name == new_tag]
- if len(remote_tag) > 0:
+ if not do_autoincrement and len(remote_tag) > 0:
# FIXME: .id attribute but avl. in wheezy based git lib
if remote_tag[0].commit.id == curr_commit_id:
logger.debug('Tag {name} was already created for commit {sha}.'.format(
logger.debug(gitrepo.git.commit('-a', '-s', '-m', 'Released by jenkins'))
logger.debug(gitrepo.git.push('origin', 'master'))
logger.info('Changelog autoincremented and pushed back by Jenkins!')
+
+ cl = changelog.Changelog()
+ cl.parse_changelog(open('debian/changelog'))
+ new_tag = cl.full_version.replace('~', '_').replace(':', ',')
except Exception as error:
logger.error('Autoincrement failed. Standard error returned:\n\n%s\n' % error.stderr, exc_info=error)
exit_error()
figlet('Upload OK')
except Exception as error:
- logger.error('Upload failed. See above for details.')
+ logger.error('Upload failed. See above for details.', exc_info=error)
figlet('Upload failed')
exit_error()