cd {jenkins_workspace}
{command}
-### To change into the chroot, execute this command with <session-name> replaced:
+### To change into the chroot, execute this command with $session and $hash replaced:
-schroot -r -c session:<session-name>
+schroot -r -c session:$session -d /build/{package}-$hash/{package}-{upstream_version}
### Don't forget to remove the chroot at the end:
### access the chroot with the schroot command. Please make sure to remove the chroot
### after you are done.
'''.format(hostname=socket.gethostname(),
+ package=changelog.package,
+ upstream_version=changelog.upstream_version,
jenkins_user=ENV['USER'],
jenkins_workspace=os.path.abspath(builder.dsc_dir),
command=' '.join(escape_arg(arg) for arg in builder.debug_command),