Difference between revisions of "DSDP/MTJ/Releng/Scheduling Builds"

From Eclipsepedia

< DSDP‎ | MTJ‎ | Releng
Jump to: navigation, search
(Crontab entry)
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
Setting build tasks to be automatically run in the background at regular intervals by the cron daemon.
 +
 +
== mtj_cron_nightly.sh ==
 +
 +
 +
<source lang="Bash">
 +
#!/bin/sh
 +
 +
# *********************************************************************************************
 +
#
 +
# All rights reserved. This program and the accompanying materials are made available
 +
# under the terms of the Eclipse Public License v1.0 which accompanies this distribution,
 +
# and is available at: http://www.eclipse.org/legal/epl-v10.html
 +
#
 +
# Contributors:
 +
#    Motorola - initial version
 +
# *********************************************************************************************
 +
 +
# exporting the path
 +
export PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
 +
 +
cd /opt/public/dsdp/mtj/
 +
/opt/public/dsdp/mtj/cleanup.sh
 +
/opt/public/dsdp/mtj/setup.sh europa
 +
/opt/public/dsdp/mtj/build_nightly.sh
 +
 +
# Cleanup old nightly builds (leave only last 5 in place)
 +
cd /opt/public/dsdp/mtj/publish
 +
ls -d N-N200* | sort | head -n-5 | xargs rm -rf
 +
cd /opt/public/dsdp/mtj/
 +
</source>
 +
 
== Crontab entry ==
 
== Crontab entry ==
{{codeblock|<nowiki> 0 5 * * 2,5 /opt/public/dsdp/mtj/mtj_cron_nightly.sh > /opt/public/dsdp/mtj/mtj_cron_nightly.log
+
{{codeblock|<nowiki> 0 8 * * 2,5 /opt/public/dsdp/mtj/mtj_cron_nightly_1.1.sh > /opt/public/dsdp/mtj/ mtj_cron_nightly_1.1.log
 
</nowiki>}}
 
</nowiki>}}
 +
 +
 +
[[Category:DSDP]] [[Category:MTJ]] [[Category:Releng]]

Latest revision as of 17:15, 1 August 2009

Setting build tasks to be automatically run in the background at regular intervals by the cron daemon.

[edit] mtj_cron_nightly.sh

#!/bin/sh
 
# *********************************************************************************************
# 
# All rights reserved. This program and the accompanying materials are made available 
# under the terms of the Eclipse Public License v1.0 which accompanies this distribution, 
# and is available at: http://www.eclipse.org/legal/epl-v10.html 
# 
# Contributors:
#     Motorola - initial version
# *********************************************************************************************
 
# exporting the path
export PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
 
cd /opt/public/dsdp/mtj/
/opt/public/dsdp/mtj/cleanup.sh
/opt/public/dsdp/mtj/setup.sh europa
/opt/public/dsdp/mtj/build_nightly.sh
 
# Cleanup old nightly builds (leave only last 5 in place)
cd /opt/public/dsdp/mtj/publish
ls -d N-N200* | sort | head -n-5 | xargs rm -rf
cd /opt/public/dsdp/mtj/

[edit] Crontab entry

 0 8 * * 2,5 /opt/public/dsdp/mtj/mtj_cron_nightly_1.1.sh > /opt/public/dsdp/mtj/ mtj_cron_nightly_1.1.log