From: Mathias Klette Date: Mon, 17 Jun 2013 10:53:50 +0000 (+0200) Subject: debian_build: ensure instructions are shown no matter if build was successful X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=3e807320d8e62d6bd40cebee1237d49dc96a0455;p=profitbricks%2Fjenkins-build-scripts.git debian_build: ensure instructions are shown no matter if build was successful --- diff --git a/debian_build.py b/debian_build.py index e99f94b..42a4c36 100755 --- a/debian_build.py +++ b/debian_build.py @@ -465,14 +465,7 @@ if __name__ == '__main__': logger.info('Reset repository to HEAD~1 to revert develop changelog entry.') logger.debug(gitrepo.git.reset('--soft', 'HEAD~1')) - # .. now handle the result - if ret: - logger.error('git-buildpackage failed with exitcode {code}'.format(code=ret)) - figlet('Build failed') - exit_error() - else: - figlet('Build OK') - + # .. show instructions of how to get interactive build logger.info(''' ### ### In case you need to analyze the results within chroot, do the following: @@ -496,6 +489,15 @@ export {gbp_env} FORCE_SHELL=TRUE ]), command=' '.join(gbp.command), )) + + # .. and finally handle the result + if ret: + logger.error('git-buildpackage failed with exitcode {code}'.format(code=ret)) + figlet('Build failed') + exit_error() + else: + figlet('Build OK') + # # ACT V: post-build actions #