Skip to content
Snippets Groups Projects
Commit 53f9de13 authored by david_williams's avatar david_williams
Browse files

streamline build scripts

parent 8243960c
No related branches found
No related tags found
No related merge requests found
#Wed Jan 02 14:24:51 EST 2008
eclipse.preferences.version=1
line.separator=\n
#!/bin/sh
# remember to leave no slashes on commonVariations in source command,
# so that users path is used to find it (first). But, path on
# commonComputedVariables means we expect to execute only our
# remember to leave no slashes on commonVariations in source command,
# so that users path is used to find it (first). But, path on
# commonComputedVariables means we expect to execute only our
# version
if [ -n $BUILD_INITIALIZED ]
if [ -n $BUILD_INITIALIZED ]
then
pushd .
cd ${RELENG_CONTROL}
......
......@@ -94,8 +94,8 @@
name="cvs"
cvsroot=":${env.BUILD_CVS_READ_PROTOCOL}:${env.BUILD_CVS_READ_USER}@${env.BUILD_CVS_SERVER}:${env.BUILD_CVS_ROOT}" />
<!--
<!--
Note: projects should be named in the form
${build.distribution}-${buildBranch}-${buildType}
-->
......@@ -124,52 +124,52 @@
</schedule>
</project>
<!--
<!--
<property
name="skipCleanBuild"
value="yes" />
-->
<!--
<!--
<property
name="skipUnitTests"
value="yes" />
-->
<!--
<!--
<project name="wtp-R1.5-M">
<modificationset quietperiod="120">
<cvs
tag="R1_5_maintenance"
module="${env.RELENGMAPS}"
reallyQuiet="${env.CVS_REALLY_QUIET}" />
</modificationset>
<schedule interval="${time.oneHour}">
<ant>
<property
name="buildType"
value="R" />
<property
name="buildId"
value="1.5.5" />
<property
name="buildBranch"
value="R1.5" />
<property
name="checkoutprojectname"
value="${project.name}" />
<property
name="mapVersionTag"
value="R1_5_maintenance" />
</ant>
</schedule>
</project>
-->
<project
name="wtp-R2.0-M">
......@@ -217,7 +217,7 @@
</project>
<!-- remove 'forceOnly' once we move into "release" phase -->
<!--
<!--
<project
name="wtp-R2.0-R"
forceOnly="true">
......@@ -235,14 +235,14 @@
module="${env.RELENGJSF}"
reallyquiet="${env.CVS_REALLY_QUIET}"/>
</modificationset>
<schedule interval="${time.VeryVeryLongTime}">
<ant>
<property
name="buildType"
value="R" />
<property
name="buildId"
value="2.0.1" />
......@@ -390,11 +390,11 @@
<!-- remove 'forceOnly' once we move into this phase of building -->
<!--
<!--
<project
name="wtp-R3.0-R"
forceOnly="true">
<modificationset quietperiod="120">
<cvs
module="${env.RELENGMAPS}"
......@@ -406,7 +406,7 @@
module="${env.RELENGDALI}"
reallyquiet="${env.CVS_REALLY_QUIET}" />
</modificationset>
<schedule interval="${time.oneHour}">
<ant>
<property
......@@ -436,7 +436,7 @@
</ant>
</schedule>
</project>
-->
<project
name="wtp-buildTools-R3.0-T"
......@@ -478,7 +478,7 @@
</exec>
</schedule>
<!-- need to prevent, or override, default publishers,
especially since the ant default antpublisher will
especially since the ant default antpublisher will
result in error, if an ant build hasn't ran -->
<publishers>
</publishers>
......
#!/bin/sh
# remember to leave no slashes on filename in source command,
# remember to leave no slashes on filename in source command,
# (the commonVariations.shsource file, that is)
# so that users path is used to find it (first)
if [ -n $BUILD_INITIALIZED ]
if [ -n $BUILD_INITIALIZED ]
then
source commonVariations.shsource
source ${BUILD_HOME}/releng.control/commonComputedVariables.shsource
source commonVariations.shsource
source ${BUILD_HOME}/releng.control/commonComputedVariables.shsource
fi
# remove artifacts over n days old
# (where hours = 24 + (n * 24), basically, so that
# (where hours = 24 + (n * 24), basically, so that
# even n=0 means "1 day")
# set at 10 days, under assumption that before that time,
# set at 10 days, under assumption that before that time,
# artifacts will be "saved" elsewhere, if needed.
# if more cleanup is needed, we should take time, and
# if more cleanup is needed, we should take time, and
# existence of more recent builds into account, so we never
# delete the last existing build (even if "old").
# delete the last existing build (even if "old").
n=10;
artifactsDir=${BUILD_HOME}/artifacts;
......
#!/bin/sh
# it is assumed we are executing this in RELENG_CONTROL or the parent of RELENG_CONTROL
# it is assumed we are executing this in RELENG_CONTROL or the parent of RELENG_CONTROL
RELENG_CONTROL=releng.control
# This script file is to help get builds started "fresh", when
# This script file is to help get builds started "fresh", when
# the ${RELENG_CONTROL} directory already exists on local file system.
# While it is in the cvs repository in ${RELENG_CONTROL}, it is
# While it is in the cvs repository in ${RELENG_CONTROL}, it is
# meant to be executed from the parent directory
# of ${RELENG_CONTROL} on the file system.
# of ${RELENG_CONTROL} on the file system.
# export is used, instead of checkout, just to avoid the CVS directories and since this code
# for a local build, there should never be a need to check it back in to CVS.
if [ ! -e ${RELENG_CONTROL} ]
if [ ! -e ${RELENG_CONTROL} ]
then
cd ..
if [ ! -e ${RELENG_CONTROL} ]
cd ..
if [ ! -e ${RELENG_CONTROL} ]
then
echo "${RELENG_CONTROL} does not exist as sub directory";
exit 1;
......@@ -41,5 +41,5 @@ mv *.ser ${RELENG_CONTROL} >/dev/null 2>/dev/null
echo " making sure releng control files are executable and have proper EOL ..."
dos2unix ${RELENG_CONTROL}/*.sh* ${RELENG_CONTROL}/*.properties ${RELENG_CONTROL}/*.xml >/dev/null 2>>/dev/null
chmod +x ${RELENG_CONTROL}/*.sh > /dev/null
echo
echo
#!/bin/sh
#!/bin/sh
PIDFILE=cc.pid
echo;
if [ -f ${PIDFILE} ] ; then
......@@ -13,6 +13,6 @@ if [ -f ${PIDFILE} ] ; then
rm -f ${PIDFILE}
else
echo " PID file (${PIDFILE}) does not exist.";
echo " Either CC not running, or PID file deleted";
echo " Either CC not running, or PID file deleted";
fi
echo;
\ No newline at end of file
echo;
\ No newline at end of file
#!/bin/sh
# This file is to "copy up" the state saved in cvs,
# in stateSnapshot directory. Since the snapshot is
# only taken occasionally, the best procedure is to
# save the state locally and restore each time releng.control
# is deleted and restored ... but, in case that is not
# possible, this this the second best alternative.
# If the state files do not exists at all, cruise control
# will lose track of their status and state and attempt to
# build every project.
mv stateSnapshot/*.ser .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment