Build on checkin EXCEPT during timeperiod

Hi Everyone,

I'm trying to migrate a bunch of projects from Finalbuilder Server into TeamCity. One of the old requirements was to run the project on every checkin, except for a 2 hour window in the morning and a 2 hour window in the afternoon so QA has some uninterrupted time.

I've been trying to figure out a way to accomplish this, but I'm not quite sure how to go about it. I thought about adding an agent requirement to make sure a folder exists (which I could create / delete on a schedule), but that doesn't seem to be a real option.

Anyone attempt something like this before? Any suggestions?

Actually, is there an API call to enable/disable projects? That might work

0
1 comment

actually, i might have figured it out. If the schedule triggers works as I expect it to :)

I want this to run on every checkin from 12am-10am, 12pm-1pm, 3:30pm-11:59pm

I have 4 scheduled triggers setup, all using cron

Schedule1: Run every minute from hour 0 - 10 and only trigger if there are pending changes

Schedule2: Run every minute from hour 12-13 and only trigger if there are pending changes

Schedule3: Run every minute from minute 30-59 during hour 15 and only trigger if there are pending changes

Schedule4: Run every minute from hour 16 - 23 and only trigger if there are pending changes

 

I have it running a test now, so we'll see what happens

0

Please sign in to leave a comment.