0

I have a Buildbot scheduler to run builds every night. Is there a way to configure Buildbot so that it does the builds only if there were changes since the last build?

-Ilya.

ilya1725
  • 4,496
  • 7
  • 43
  • 68

1 Answers1

0

Yes, that's the Nightly scheduler's onlyIfChanged option - http://docs.buildbot.net/current/manual/cfg-schedulers.html#nightly-scheduler.

djmitche
  • 409
  • 2
  • 10
  • `onlyIfChanged` option will work. There is also `branch` option to specify the branch. But I'm curious, how does the scheduler know which repository it applies to? – ilya1725 Aug 29 '14 at 18:38
  • The `branch` parameter is a holdover from the days when Buildbot supported only a single codebase. With multiple codebases (in multiple repositories), it's not a very useful parameter. – djmitche Aug 30 '14 at 22:14
  • Is it still needed? The `checkconfig` says that this parameter is required. What should it be set to in case of several repositories? – ilya1725 Sep 08 '14 at 18:20
  • Hm, I think that's a bug. It looks like this was fixed in [March 2012](https://github.com/buildbot/buildbot/commit/83e27f5c#diff-f44457fbb17a7eb67ceb7808f125aaaeL249) but then reverted in [May 2012](https://github.com/buildbot/buildbot/commit/cb42c19a#diff-f44457fbb17a7eb67ceb7808f125aaaeL246). But looking at the rest of the code I think there are deeper assumptions about branch. – djmitche Sep 09 '14 at 20:24