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 #!/bin/sh
# remember to leave no slashes on commonVariations in source command, # remember to leave no slashes on commonVariations in source command,
# so that users path is used to find it (first). But, path on # so that users path is used to find it (first). But, path on
# commonComputedVariables means we expect to execute only our # commonComputedVariables means we expect to execute only our
# version # version
if [ -n $BUILD_INITIALIZED ] if [ -n $BUILD_INITIALIZED ]
then then
pushd . pushd .
cd ${RELENG_CONTROL} cd ${RELENG_CONTROL}
......
...@@ -94,8 +94,8 @@ ...@@ -94,8 +94,8 @@
name="cvs" name="cvs"
cvsroot=":${env.BUILD_CVS_READ_PROTOCOL}:${env.BUILD_CVS_READ_USER}@${env.BUILD_CVS_SERVER}:${env.BUILD_CVS_ROOT}" /> 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 Note: projects should be named in the form
${build.distribution}-${buildBranch}-${buildType} ${build.distribution}-${buildBranch}-${buildType}
--> -->
...@@ -124,52 +124,52 @@ ...@@ -124,52 +124,52 @@
</schedule> </schedule>
</project> </project>
<!-- <!--
<property <property
name="skipCleanBuild" name="skipCleanBuild"
value="yes" /> value="yes" />
--> -->
<!-- <!--
<property <property
name="skipUnitTests" name="skipUnitTests"
value="yes" /> value="yes" />
--> -->
<!-- <!--
<project name="wtp-R1.5-M"> <project name="wtp-R1.5-M">
<modificationset quietperiod="120"> <modificationset quietperiod="120">
<cvs <cvs
tag="R1_5_maintenance" tag="R1_5_maintenance"
module="${env.RELENGMAPS}" module="${env.RELENGMAPS}"
reallyQuiet="${env.CVS_REALLY_QUIET}" /> reallyQuiet="${env.CVS_REALLY_QUIET}" />
</modificationset> </modificationset>
<schedule interval="${time.oneHour}"> <schedule interval="${time.oneHour}">
<ant> <ant>
<property <property
name="buildType" name="buildType"
value="R" /> value="R" />
<property <property
name="buildId" name="buildId"
value="1.5.5" /> value="1.5.5" />
<property <property
name="buildBranch" name="buildBranch"
value="R1.5" /> value="R1.5" />
<property <property
name="checkoutprojectname" name="checkoutprojectname"
value="${project.name}" /> value="${project.name}" />
<property <property
name="mapVersionTag" name="mapVersionTag"
value="R1_5_maintenance" /> value="R1_5_maintenance" />
</ant> </ant>
</schedule> </schedule>
</project> </project>
--> -->
<project <project
name="wtp-R2.0-M"> name="wtp-R2.0-M">
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
</project> </project>
<!-- remove 'forceOnly' once we move into "release" phase --> <!-- remove 'forceOnly' once we move into "release" phase -->
<!-- <!--
<project <project
name="wtp-R2.0-R" name="wtp-R2.0-R"
forceOnly="true"> forceOnly="true">
...@@ -235,14 +235,14 @@ ...@@ -235,14 +235,14 @@
module="${env.RELENGJSF}" module="${env.RELENGJSF}"
reallyquiet="${env.CVS_REALLY_QUIET}"/> reallyquiet="${env.CVS_REALLY_QUIET}"/>
</modificationset> </modificationset>
<schedule interval="${time.VeryVeryLongTime}"> <schedule interval="${time.VeryVeryLongTime}">
<ant> <ant>
<property <property
name="buildType" name="buildType"
value="R" /> value="R" />
<property <property
name="buildId" name="buildId"
value="2.0.1" /> value="2.0.1" />
...@@ -390,11 +390,11 @@ ...@@ -390,11 +390,11 @@
<!-- remove 'forceOnly' once we move into this phase of building --> <!-- remove 'forceOnly' once we move into this phase of building -->
<!-- <!--
<project <project
name="wtp-R3.0-R" name="wtp-R3.0-R"
forceOnly="true"> forceOnly="true">
<modificationset quietperiod="120"> <modificationset quietperiod="120">
<cvs <cvs
module="${env.RELENGMAPS}" module="${env.RELENGMAPS}"
...@@ -406,7 +406,7 @@ ...@@ -406,7 +406,7 @@
module="${env.RELENGDALI}" module="${env.RELENGDALI}"
reallyquiet="${env.CVS_REALLY_QUIET}" /> reallyquiet="${env.CVS_REALLY_QUIET}" />
</modificationset> </modificationset>
<schedule interval="${time.oneHour}"> <schedule interval="${time.oneHour}">
<ant> <ant>
<property <property
...@@ -436,7 +436,7 @@ ...@@ -436,7 +436,7 @@
</ant> </ant>
</schedule> </schedule>
</project> </project>
--> -->
<project <project
name="wtp-buildTools-R3.0-T" name="wtp-buildTools-R3.0-T"
...@@ -478,7 +478,7 @@ ...@@ -478,7 +478,7 @@
</exec> </exec>
</schedule> </schedule>
<!-- need to prevent, or override, default publishers, <!-- 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 --> result in error, if an ant build hasn't ran -->
<publishers> <publishers>
</publishers> </publishers>
......
#!/bin/sh #!/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) # (the commonVariations.shsource file, that is)
# so that users path is used to find it (first) # so that users path is used to find it (first)
if [ -n $BUILD_INITIALIZED ] if [ -n $BUILD_INITIALIZED ]
then then
source commonVariations.shsource source commonVariations.shsource
source ${BUILD_HOME}/releng.control/commonComputedVariables.shsource source ${BUILD_HOME}/releng.control/commonComputedVariables.shsource
fi fi
# remove artifacts over n days old # 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") # 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. # 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 # 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; n=10;
artifactsDir=${BUILD_HOME}/artifacts; artifactsDir=${BUILD_HOME}/artifacts;
......
#!/bin/sh #!/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 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. # 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 # 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 # 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. # 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 then
cd .. cd ..
if [ ! -e ${RELENG_CONTROL} ] if [ ! -e ${RELENG_CONTROL} ]
then then
echo "${RELENG_CONTROL} does not exist as sub directory"; echo "${RELENG_CONTROL} does not exist as sub directory";
exit 1; exit 1;
...@@ -41,5 +41,5 @@ mv *.ser ${RELENG_CONTROL} >/dev/null 2>/dev/null ...@@ -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 ..." 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 dos2unix ${RELENG_CONTROL}/*.sh* ${RELENG_CONTROL}/*.properties ${RELENG_CONTROL}/*.xml >/dev/null 2>>/dev/null
chmod +x ${RELENG_CONTROL}/*.sh > /dev/null chmod +x ${RELENG_CONTROL}/*.sh > /dev/null
echo echo
#!/bin/sh #!/bin/sh
PIDFILE=cc.pid PIDFILE=cc.pid
echo; echo;
if [ -f ${PIDFILE} ] ; then if [ -f ${PIDFILE} ] ; then
...@@ -13,6 +13,6 @@ if [ -f ${PIDFILE} ] ; then ...@@ -13,6 +13,6 @@ if [ -f ${PIDFILE} ] ; then
rm -f ${PIDFILE} rm -f ${PIDFILE}
else else
echo " PID file (${PIDFILE}) does not exist."; 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 fi
echo; echo;
\ No newline at end of file \ 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