[Buildbot-commits] [Buildbot] #2319: How to use the same builder for daytime commit builds and nightly full rebuilds?

Buildbot nobody at buildbot.net
Wed Aug 29 09:15:40 UTC 2012


#2319: How to use the same builder for daytime commit builds and nightly full
rebuilds?
----------------------------+--------------------------
Reporter:  dtrosset         |       Owner:
    Type:  support-request  |      Status:  closed
Priority:  minor            |   Milestone:  ongoing
 Version:  0.8.6p1          |  Resolution:  no-response
Keywords:                   |
----------------------------+--------------------------

Comment (by dtrosset):

 I managed to get this behaviour using properties, and the doStepIf of
 build steps.

 I thought first to use the mode of the SVN step, and change it between
 'export' and 'update', but this would have lead to the very first build of
 the morning to take quite a long time. Indeed, the SVN step would have
 completely ripped off the exported stuff and replaced it with a brand new
 updated one.

 I settled onto this solution where the Nightly scheduler sets a 'full'
 property. Then, right before the SVN 'update' step, I use the
 RemoveDirectory step if this 'full' property is present.


 {{{
     def IsFullBuild(step):
         return step.build.getProperties().has_key("full") and
 step.getProperty("full")

     factory.addStep( RemoveDirectory( dir="build", doStepIf=IsFullBuild )
 )
     factory.addStep( SVN( ... ) )
 }}}

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2319#comment:3>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list