Skip to main content
Jump to: navigation, search

Modeling Project Releng/Building/Scheduled Builds

< Modeling Project Releng‎ | Building
Revision as of 21:28, 4 December 2007 by (Talk | contribs) (New page: Using a website or [

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Using a website or shell script for building too much work? Well, thanks to bug 207007 you can now schedule builds to run on a schedule.

By default, a build will only run if there's anything new in CVS to merit a build. This can be overridden such that a build will ALWAYS run at a given time using the -nosearchcvs flag.


Say you want to run 5 builds back-to-back and have each one grab the latest, starting at 6pm and running until about 7:15pm.

Login to your build server, then add this to your crontab using crontab -e to edit it.

# U/O/QTV N builds: uml2 (20-25min), ocl (10-15min), query (5-10min), validation (7-10min), transaction (12-15min)
00 18 * * 2 sudo -u www-data /home/www-data/build/modeling/scripts/ -sub uml2 -regex "[ISR]200.*/eclipse-SDK-|[ISR]200.*/emf-sdo-xsd-SDK-" -basebuilderBranch v20071030 -nosearchcvs > $HOME/cron_logs/ 2>&1
25 18 * * 2 sudo -u www-data /home/www-data/build/modeling/scripts/ -sub ocl -regex "[ISR]200.*/eclipse-SDK-|[ISR]200.*/emf-sdo-xsd-SDK-|[ISR]200.*/mdt-uml2-SDK|orbit" -basebuilderBranch v20071030 -nosearchcvs > $HOME/cron_logs/ 2>&1
40 18 * * 2 sudo -u www-data /home/www-data/build/modeling/scripts/ -sub query -regex "[ISR]200.*/eclipse-SDK-|[ISR]200.*/emf-sdo-xsd-SDK-|[S]200.*mdt-ocl-SDK-" -basebuilderBranch v20071030 -nosearchcvs > $HOME/cron_logs/ 2>&1
50 18 * * 2 sudo -u www-data /home/www-data/build/modeling/scripts/ -sub validation -regex "[ISR]200.*/eclipse-SDK-|[ISR]200.*emf-sdo-xsd-SDK-|[S]200.*mdt-ocl-SDK-" -basebuilderBranch v20071030 -nosearchcvs > $HOME/cron_logs/ 2>&1
00 19 * * 2 sudo -u www-data /home/www-data/build/modeling/scripts/ -sub transaction -regex "[ISR]200.*/eclipse-SDK-|[ISR]200.*/emf-sdo-xsd-SDK-|[ISR]200.*/emf-validation-SDK-" -basebuilderBranch v20071030 -nosearchcvs > $HOME/cron_logs/ 2>&1

Additional options and flags are documented in the shell script,

Back to the top