]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix path to pbuilder script
authorHolger Levsen <holger@layer-acht.org>
Wed, 9 Nov 2011 16:05:11 +0000 (17:05 +0100)
committerHolger Levsen <holger@layer-acht.org>
Wed, 9 Nov 2011 16:05:11 +0000 (17:05 +0100)
kernel_build.py

index f5a7e7a08608f624858d7346aa516d2800993dd7..47a63ae261e6d79631cb3d4d167d583eb58326e0 100644 (file)
@@ -44,14 +44,14 @@ logger.addHandler(stream_handler)
 
 
 def build_kernel_with_pbuilder(revision, pbuilder_script, dist='stable'):
-    pbuilder_script = os.path.abspath(pbuilder_script)
+    pbuilder_script = os.path.join(sys.path[0],pbuilder_script)
 
     cmd = [
             SUDO,
             PBUILDER,
             '--execute',
             '--hookdir', '""',
-            '--bindmounts', '"/srv/git %s"' %(os.path.join(CWD,'..')),
+            '--bindmounts', '"/srv/git %s" /var/lib/jenkins/jenkins_build_script/' % (CWD),
             '--',
             pbuilder_script,
             '--cwd', '%s' %('/tmp'),