# .. now handle the result
if ret:
+ logger.error('git-buildpackage failed with exitcode {code}'.format(code=ret))
figlet('Build failed')
- logger.error('''git-buildpackage failed with exitcode {code}
+ exit_error()
+ else:
+ figlet('Build OK')
+
+ logger.info('''
###
-### In case you need to analyze errors within chroot, do the following:
+### In case you need to analyze the results within chroot, do the following:
### * login to {hostname}
-### * become {jenkins_user}
+### * become user {jenkins_user}
### * then execute:
###
###
###
'''.format(
- code=ret,
hostname=socket.gethostname(),
jenkins_user=ENV['USER'],
jenkins_workspace=ENV['WORKSPACE'],
]),
command=' '.join(gbp.command),
))
- exit_error()
- else:
- figlet('Build OK')
-
#
# ACT V: post-build actions
#