]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build.py: Extend schroot debugging instructions.
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Mon, 22 Sep 2014 12:06:18 +0000 (14:06 +0200)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Mon, 22 Sep 2014 12:06:18 +0000 (14:06 +0200)
debian_build.py

index 706394ae64c655fdad15b03f7f513b4584e334d8..b33b2b37be5939f091592e5b224fc9554643aad2 100755 (executable)
@@ -697,9 +697,9 @@ def main():
 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:
 
@@ -712,6 +712,8 @@ schroot -e -c session:<session-name>
 ###  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),