Buildbot: Make sure buildbot_upload.zip is created in the right place
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 3 Dec 2015 11:30:21 +0000 (16:30 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 3 Dec 2015 11:30:52 +0000 (16:30 +0500)
build_files/buildbot/slave_pack.py

index 55fc1399b322ac0014bcdc26cf43b177f26c443a..30f02e2f57e3e6fbdeca7832996ecda5ae2c38f3 100644 (file)
@@ -221,7 +221,7 @@ else:
             upload_filename = branch + "-" + upload_filename
 
         print("Creating .tar.bz2 archive")
-        os.system('tar -C../install -cjf %s.tar.bz2 %s' % (builder, builder))
+        os.system('tar -C../install -cjf ../install/%s.tar.bz2 %s' % (builder, builder))
         upload_filepath = install_dir + '.tar.bz2'
 
 
@@ -265,7 +265,7 @@ if upload_filepath is None:
 
 # create zip file
 try:
-    upload_zip = "buildbot_upload.zip"
+    upload_zip = os.path.join(os.path.dirname(install_dir), "buildbot_upload.zip")
     if os.path.exists(upload_zip):
         os.remove(upload_zip)
     z = zipfile.ZipFile(upload_zip, "w", compression=zipfile.ZIP_STORED)