version 1.2, 2025/01/21 20:39:32
|
version 1.5, 2025/03/05 17:23:59
|
Line 44 then
|
Line 44 then
|
exit 1 |
exit 1 |
fi |
fi |
|
|
if [ $EUID -ne ${BUILDMAN_UID} ] |
#if [ $EUID -ne ${BUILDMAN_UID} ] |
then |
#then |
echo "${PROGN} error: must be run as user \"${BUILDMAN_USER}\"" |
# echo "${PROGN} error: must be run as user \"${BUILDMAN_USER}\"" |
exit 1 |
# exit 1 |
fi |
#fi |
|
|
OS=`uname` |
OS=`uname` |
DT=`date +"%Y%m%d"` |
DT=`date +"%Y%m%d"` |
Line 91 do
|
Line 91 do
|
echo "$PROGN: creating job ${JOBID}" |
echo "$PROGN: creating job ${JOBID}" |
JOBDIR="${HOSTDIR}/jobs/${JOBID}" |
JOBDIR="${HOSTDIR}/jobs/${JOBID}" |
JLOG="${JOBDIR}/job.log" |
JLOG="${JOBDIR}/job.log" |
JSCR="${BUILDMAN_BASE}/project/${PROJECT}/scripts/build.sh" |
JSCR="${BUILDMAN_BASE}/projects/${PROJECT}/scripts/build.sh" |
|
|
mkdir -p "${JOBDIR}" |
mkdir -p "${JOBDIR}" |
cd "${JOBDIR}" |
cd "${JOBDIR}" |
|
|
|
echo "Coherent Logic Development BuildMan" >> "${JLOG}" |
|
echo "Build agent is running job ID ${JOBID} for project ${PROJECT} on node ${THOST}" >> "${JLOG}" |
|
|
echo "${JOBID}" > "${HOSTDIR}/build-running" |
echo "${JOBID}" > "${HOSTDIR}/build-running" |
echo "${JOBID}" > "${JOBDIR}/running" |
echo "${JOBID}" > "${JOBDIR}/running" |
Line 102 do
|
Line 105 do
|
if [ -f "${JSCR}" ] |
if [ -f "${JSCR}" ] |
then |
then |
echo "$PROGN: running build script ${JSCR} for project ${PROJECT} [job id ${JOBID}]" |
echo "$PROGN: running build script ${JSCR} for project ${PROJECT} [job id ${JOBID}]" |
sh "${JSCR}" > ${JLOG} |
sh "${JSCR}" >> ${JLOG} |
RETCODE=$? |
RETCODE=$? |
|
|
rm -f "${HOSTDIR}/build-running" |
rm -f "${HOSTDIR}/build-running" |
rm -f "${JOBDIR}/running" |
rm -f "${JOBDIR}/running" |
|
|
|
rm -f "${HOSTDIR}/build-failing" |
|
rm -f "${HOSTDIR}/build-passing" |
|
|
case $RETCODE in |
case $RETCODE in |
|
|
0) |
0) |