Build definition "accept options" for Scheduled/Manual Build
Hi Team,
I scheduled a build and both the options ( "Accept latest changes before loading" and "Build only if there are changes accepted") are checked.Here Build is triggered as per the schedule if the some source code are checked in. But If there are NO source code checked in the build is not triggered. Is there is a way that the scheduled build will always trigger , irrespective of whether files are checked in or not? I meant forcing the build to trigger on scheduled time ,if no changes committed to repository. Or We need to always start the build,manually in this case? |
One answer
Removing the "Build only if there are changes accepted" option will let the build run every time. That option is for Continuous Integration builds where only builds with changes should be built. But if you want it everytime, remove that option.
~Spencer
Comments
Anand Billore
commented Jan 16 '15, 3:00 a.m.
Thanks a lot for your answer.
Anand Billore
commented Jan 16 '15, 7:44 a.m.
With above comments please find some additional info so that you can suggest me :
You don't need to uncheck both. "Build only if there are changes accepted" matches up to the property team_scm_buildOnlyIfChanges property. It allows the build to run everytime. The other option "Accept latest changes before building" just accepts the latest into the build workspace before the build, making sure that you are always running builds from latest. So it is likely you want to keep that option on.
Anand Billore
commented Jan 18 '15, 11:46 p.m.
Yes ,I got your point. But in my BuildDefinition I have set "Build only if there are changes accepted" false. And this BuildDefinition is associated to BuildForge project. So DO I also need to set team_scm_buildOnlyIfChanges false in that project?
The variables in BF should be overridden by the values coming in from RTC. You can change that value, but the value in BF should never 'stick'. It should always be the value of the variable in RTC.
Anand Billore
commented Jan 29 '15, 1:08 a.m.
I observed that the build scheduled on 10 PM mon-Fri ,did not run with above configuration. But when I changed the schedule manually for today with some 4 hours differences then it run perfectly. So BF is taking only the recent changes and triggered?It is confusing me.. Please help
showing 5 of 6
show 1 more comments
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.