]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
sudo make me a sandwhich
authorHolger Levsen <holger@layer-acht.org>
Tue, 15 Jan 2013 16:08:12 +0000 (17:08 +0100)
committerHolger Levsen <holger@layer-acht.org>
Tue, 15 Jan 2013 16:08:12 +0000 (17:08 +0100)
debian_build.py

index b0e954ababa005533aff1b7db0aabe775efc9265..e15fed619e7666fa9f051749c120f5f1bfca5c92 100755 (executable)
@@ -557,7 +557,7 @@ if __name__ == '__main__':
     cmd = ['/bin/tar', 'xzvf', os.path.join(CWD, '../build-area/result/reports.tgz'), '-C',  CWD]
     try:
         subprocess.check_call(cmd)
-        cmd = ['/bin/rm', os.path.join(CWD, '../build-area/result/reports.tgz')]
+        cmd = ['/usr/bin/sudo' , '/bin/rm', os.path.join(CWD, '../build-area/result/reports.tgz')]
         subprocess.check_call(cmd)
     except:
         pass