X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=buildSite.sh;h=7992e7448aa6458f687b65cc92633f60adfb0a0b;hb=refs%2Ftags%2Fsvn%2Ftags%2Fargeo-slc-0.14.0;hp=b84173dea55813dc4cde858c20f6cdb07bf5704c;hpb=62c1b956220e06b724cb6a9bdd744a3244cc3eaa;p=gpl%2Fargeo-slc.git diff --git a/buildSite.sh b/buildSite.sh index b84173dea..7992e7448 100755 --- a/buildSite.sh +++ b/buildSite.sh @@ -14,8 +14,11 @@ 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 +/usr/local/bin/mvn -up --fail-at-end deploy $PROFILES 2>&1 | tee deploy.log EXIT_STATUS=$PIPESTATUS if [ $EXIT_STATUS -eq 0 ] then @@ -24,8 +27,13 @@ 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 +/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 @@ -33,4 +41,5 @@ else mail -s "SiteGeneration@$HOSTNAME FAILURE - $DATE - $BUILD_DIR" $TO < siteGeneration.log fi + exit $EXIT_STATUS