[Bf-blender-cvs] [f46e77f] master: cmake buildbot. Create the zip archive with the name as expected

Martijn Berger noreply at git.blender.org
Wed Nov 12 15:24:24 CET 2014


Commit: f46e77fd561992b253c904a7c89a95d465d7feb0
Author: Martijn Berger
Date:   Wed Nov 12 15:23:24 2014 +0100
Branches: master
https://developer.blender.org/rBf46e77fd561992b253c904a7c89a95d465d7feb0

cmake buildbot. Create the zip archive with the name as expected

===================================================================

M	build_files/buildbot/slave_pack.py

===================================================================

diff --git a/build_files/buildbot/slave_pack.py b/build_files/buildbot/slave_pack.py
index ec8fd61..faceb8d 100644
--- a/build_files/buildbot/slave_pack.py
+++ b/build_files/buildbot/slave_pack.py
@@ -118,7 +118,12 @@ if builder.find('scons') != -1:
 else:
 #cmake
     if 'win' in builder:
+        files = [f for f in os.listdir('.') if os.path.isfile(f) and f.endswith('.zip')]
+        for f in files:
+            os.remove(f)
         retcode = subprocess.call(['cpack', '-G','ZIP'])
+        result_file = [f for f in os.listdir('.') if os.path.isfile(f) and f.endswith('.zip')][0]
+        os.rename(result_file, "buildbot_upload.zip")
         sys.exit(retcode)
 
 # clean release directory if it already exists




More information about the Bf-blender-cvs mailing list