X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=buildSite.sh;h=7992e7448aa6458f687b65cc92633f60adfb0a0b;hb=ece297b709bf55a514b471e1141dcd22fcdc54c6;hp=f35c0817ba17f1902333cec631715d7ff85506d3;hpb=dbb3a75a5f264ea980718a8b027b30da3c02f8f2;p=gpl%2Fargeo-slc.git diff --git a/buildSite.sh b/buildSite.sh index f35c0817b..7992e7448 100755 --- a/buildSite.sh +++ b/buildSite.sh @@ -14,23 +14,32 @@ HOSTNAME=`hostname -f` DATE=`date -u` EXIT_STATUS=0 +export MAVEN_OPTS=-Xmx256m +export PATH=$PATH:/usr/local/bin + # BUILD -mvn --fail-at-end deploy $PROFILES 2>&1 | tee deploy.log -EXIT_STATUS=$? -if [ $EXIT_STATUS eq 0 ] +/usr/local/bin/mvn -up --fail-at-end deploy $PROFILES 2>&1 | tee deploy.log +EXIT_STATUS=$PIPESTATUS +if [ $EXIT_STATUS -eq 0 ] then mail -s "Build@$HOSTNAME SUCCESS - $DATE - $BUILD_DIR" $TO < pom.xml else mail -s "Build@$HOSTNAME FAILURE - $DATE - $BUILD_DIR" $TO < deploy.log fi +# SDK +#cd dist/org.argeo.slc.sdk +#/usr/local/bin/mvn deploy +#cd ../.. + # SITE -mvn --fail-at-end site-deploy $PROFILES 2>&1 | tee siteGeneration.log -if [ $? eq 0 ] +/usr/local/bin/mvn -up --fail-at-end site-deploy $PROFILES 2>&1 | tee siteGeneration.log +if [ $PIPESTATUS -eq 0 ] then echo No need to send email for successful site generation else mail -s "SiteGeneration@$HOSTNAME FAILURE - $DATE - $BUILD_DIR" $TO < siteGeneration.log fi -exit $EXIT_STATUS \ No newline at end of file + +exit $EXIT_STATUS