1
我想保存每晚構建的副本,我想將每個構建放入其自己的日常文件夾中將是想法。但是我不能使用時間從buildbot Master.cfg中,因爲當它被配置來設置它:如何使用buildbot創建每日生成文件夾?
copy_files = [".\\release\\MyProgram.exe",
".\\install\\ChangeLog.js",
".\\translations.txt"]
server_dest_path_by_date = server_dest_path + "\\{0}".format(time.strftime("%Y-%m-%d"))
my_return.addStep(steps.MakeDirectory(dir=server_dest_path_by_date))
for file in copy_files:
my_return.addStep(ShellCommand(command=["copy", file, server_dest_path_by_date, "/y"]))
我將如何獲得在目的地使用的當前運行日期?