mirror of https://github.com/apache/maven.git
only mail about skipped run on checkout attempt to allow overlap
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@225664 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d389dffc68
commit
d0e19edc71
23
ci.sh
23
ci.sh
|
@ -3,6 +3,7 @@
|
||||||
# ----------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------
|
||||||
|
|
||||||
. $HOME/.profile
|
. $HOME/.profile
|
||||||
|
cd $HOME
|
||||||
|
|
||||||
CMD=$1
|
CMD=$1
|
||||||
|
|
||||||
|
@ -15,18 +16,20 @@ DATE=`date`
|
||||||
PID=$$
|
PID=$$
|
||||||
RUNNING=`ps -ef | grep ci.sh | grep -v 'sh -c' | grep -v grep | grep -v $PID`
|
RUNNING=`ps -ef | grep ci.sh | grep -v 'sh -c' | grep -v grep | grep -v $PID`
|
||||||
if [ ! -z "$RUNNING" ]; then
|
if [ ! -z "$RUNNING" ]; then
|
||||||
echo "From: $FROM" > running_log
|
if [ "$CMD" = "checkout" ]; then
|
||||||
echo "To: $TO" >> running_log
|
echo "From: $FROM" > running_log
|
||||||
echo "Subject: [maven2 build - SKIPPED - $CMD] $DATE" >>running_log
|
echo "To: $TO" >> running_log
|
||||||
echo "" >> running_log
|
echo "Subject: [maven2 build - SKIPPED - $CMD] $DATE" >>running_log
|
||||||
echo "ci.sh already running... exiting" >>running_log
|
echo "" >> running_log
|
||||||
echo "$RUNNING" >>running_log
|
echo "ci.sh already running... exiting" >>running_log
|
||||||
/usr/sbin/sendmail -t < running_log
|
echo "$RUNNING" >>running_log
|
||||||
|
/usr/sbin/sendmail -t < running_log
|
||||||
|
fi
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HOME_DIR=`pwd`
|
HOME_DIR=`pwd`
|
||||||
DIR=m2-build
|
DIR=$HOME/m2-build
|
||||||
REPO=$HOME_DIR/maven-repo-local
|
REPO=$HOME_DIR/maven-repo-local
|
||||||
SCM_LOG=scm.log
|
SCM_LOG=scm.log
|
||||||
TIMESTAMP=`date +%Y%m%d.%H%M%S`
|
TIMESTAMP=`date +%Y%m%d.%H%M%S`
|
||||||
|
@ -60,6 +63,10 @@ if [ -f $HOME_DIR/build_required ]; then
|
||||||
BUILD_REQUIRED=`cat $HOME_DIR/build_required`
|
BUILD_REQUIRED=`cat $HOME_DIR/build_required`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -d $DIR/maven-components ]; then
|
||||||
|
CMD="checkout"
|
||||||
|
fi
|
||||||
|
|
||||||
(
|
(
|
||||||
if [ "$CMD" = "checkout" ]
|
if [ "$CMD" = "checkout" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue