cmake buildbot. Create the zip archive with the name as expected
authorMartijn Berger <mberger@denc.com>
Wed, 12 Nov 2014 14:23:24 +0000 (15:23 +0100)
committerMartijn Berger <mberger@denc.com>
Wed, 12 Nov 2014 14:23:24 +0000 (15:23 +0100)
build_files/buildbot/slave_pack.py

index ec8fd61c78751a9a41b26ba74757aabb1af8f88d..faceb8d3a6541d94d6f1076a71ec50e63073a380 100644 (file)
@@ -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