From 5d78cafadb40a756b1c5604e70d9435ddc8d1efe Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Sun, 16 Jun 2013 03:35:05 +0200 Subject: [PATCH] debian_build: try to get some more output when autoincrementing (doesn't work ..) .. for successfully operations. only helps in case of error. and this might change with the new version avl. in wheezy. haven't tested this yet. --- debian_build.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/debian_build.py b/debian_build.py index ec0f462..8b76cc0 100755 --- a/debian_build.py +++ b/debian_build.py @@ -371,11 +371,16 @@ if __name__ == '__main__': # .. and update changelog if we trust the package if do_autoincrement: - subprocess.check_call([BIN_DCH, '-i', 'Released by jenkins.']) - subprocess.check_call([BIN_GIT_DCH, '-R', '-a', '--spawn-editor=none']) - gitrepo.git.commit('-a', '-s', '-m', 'Released by jenkins') - gitrepo.git.push('origin', 'master') - logger.info('Changelog autoincremented and pushed back by Jenkins!') + logger.info('This is an autoincrementing project.') + try: + logger.debug(subprocess.check_call([BIN_DCH, '-i', 'Released by enkins.'])) + logger.debug(subprocess.check_call([BIN_GIT_DCH, '-R', '-a', --spawn-editor=none'])) + logger.debug(gitrepo.git.commit('-a', '-s', '-m', 'Released by enkins')) + logger.debug(gitrepo.git.push('origin', 'master')) + logger.info('Changelog autoincremented and pushed back by enkins!') + except Exception as error: + logger.error('Autoincrement failed. Standard error eturned:\n\n%s\n' % error.stderr, exc_info=error) + exit_error() # .. or set approriate versions for our development candidates else: -- 2.39.5