Combining Scheduled Trigger and a VCS Per Commit Trigger

I would like to combine a Scheduled Trigger and a VCS Per Commit Trigger. We have a CI gated commit enviroment running fine, but we would like to add Code Coverage and Static Analisys. They are both setup to run periodically and are not part of the gated commit because the both take way to long (3-5 hours) and we don't have the compute resources to do that on a per commit basis during the day. I'd like to have each and every commit (post gated commit)  run as a separate build (easier to track back to who committed it) but only start doing them after everyone goes home.

Thanks
--James.

5 comments
Comment actions Permalink

The easiest way is to pause and unpause the build configuration using cron and TC REST API: http://confluence.jetbrains.com/display/TCD8/REST+API

0
Comment actions Permalink

I finalay got around to trying this, and it does not do what I need. The BC is paused and reactaviated as expected, but it does not run any of the Pending Changes. Probally because the BC was baused when the VCS trigger event happend. I could script up a system to build the pending cahanges one by one during the specified time, if you don't see any easier way to do this.

--james.

0
Comment actions Permalink

would it be better to leave the BC enabled, but change the agent requirements? so that it could run on no agents during the day and on agents at night. that way the vcs trigger would happen but the build would set in the queue until we wanted them to run.
--james.

0
Comment actions Permalink

yeah, adding and removing agent requirements would work too. You can add the dummy requirement before the day starts and remove it after work day finishes. The change would apply immediately to all queued builds.

0
Comment actions Permalink

Yes, that works, I had already tried that on friday, and it appears to work fine.
--james.

0

Please sign in to leave a comment.