logger.info('Reset repository to HEAD~1 to revert develop changelog entry.')
logger.debug(gitrepo.git.reset('--soft', 'HEAD~1'))
- # .. show instructions of how to get interactive build
- logger.info('''
-###
-### In case you need to analyze the results within chroot, do the following:
-### * login to {hostname}
-### * become user {jenkins_user}
-### * then execute:
-###
-
-cd {jenkins_workspace}
-export {builder_env} FORCE_SHELL=TRUE
-{command}
-
-###
-### Beware when using 'merge' trigger: The above command specifies the target
-### branch already while you want to run on original branch '{orig_branch}'.
-###
-'''.format(hostname=socket.gethostname(),
- jenkins_user=ENV['USER'],
- jenkins_workspace=builder.dsc_dir,
- builder_env=' '.join(['{k}="{v}"'.format(k=key, v=builder.env[key],)
- for key in builder.env.keys()]),
- command=' '.join(escape_arg(arg) for arg in builder.command),
- orig_branch=ENV['GIT_BRANCH'],
- ))
-
# .. and finally handle the result
if ret:
build_failed = True