我正在考虑自动化团队中的竹子释放,目前它是手动触发的。发布每三周发生一次,并设置一个自定义变量来表示这一点。如果存在变量,则会触发与发布分支的自动合并。
我正在运行两个问题
有很多构建,所以我不想为每个计划制定额外的构建计划。
答案 0 :(得分:0)
可以使用cron表达式创建Schedule触发器。尝试使用在月份的第1天和第16天执行构建的表达式 1 1 11 1,16 *?
无法为计划构建设置变量值
答案 1 :(得分:0)
a) There doesn't seem to be a way to schedule a fortnightly build in bamboo.
You can use cron job expression for scheduling fortnightly builds.
b) I don't see a way set a custom variable with a scheduled build. I just need some sort of flag to say this was the weekly build and not the automated build that happens on check in.
You must be having some admin user which runs automatically triggered bamboo builds. You can use Bamboo variable {bamboo.ManualBuildTriggerReason.userName}. If this variable name is equal to Bamboo admin user name then this build was triggered at scheduled time. otherwise it was triggered by user/developer.