X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=buildSite.sh;h=ebe8b9dda6b538df6d0f6375696b3f83407e8793;hb=7608332865a01c65a10424e5580a287ff4eb17a7;hp=c4011e57dbdc06a48c1a5edda86a23de1709da6e;hpb=0de4227a834fd97898c97d181ff0cffc92e519d2;p=gpl%2Fargeo-slc.git diff --git a/buildSite.sh b/buildSite.sh index c4011e57d..ebe8b9dda 100755 --- a/buildSite.sh +++ b/buildSite.sh @@ -16,7 +16,7 @@ EXIT_STATUS=0 export MAVEN_OPTS=-Xmx256m # BUILD -mvn -up --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 @@ -25,8 +25,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 -up --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 @@ -34,4 +39,5 @@ else mail -s "SiteGeneration@$HOSTNAME FAILURE - $DATE - $BUILD_DIR" $TO < siteGeneration.log fi + exit $EXIT_STATUS