【发布时间】:2016-03-04 10:30:56
【问题描述】:
我想保存夜间构建的副本,我认为将每个构建放入自己的日常文件夹中是个好主意。但是我不能使用 buildbot master.cfg 中的时间,因为它是在配置时设置的:
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"]))
如何获取当前运行日期以在目的地使用?
【问题讨论】:
标签: buildbot