From: n.hoffmann Date: Mon, 15 Aug 2011 13:12:46 +0000 (+0000) Subject: Added deploy script for nightly builds X-Git-Tag: 3.6.0~1204 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/e50fdf31f1b8ade7783562caaa05a87dd17cd1bb?ds=sidebyside Added deploy script for nightly builds --- diff --git a/.gitattributes b/.gitattributes index f6c2dc66f..8257ee1fd 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1214,6 +1214,7 @@ eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/test/ContextMen eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/test/LoginTest.java -text eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/test/NewMenuTest.java -text eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/test/NewTaxonWizardTest.java -text +eu.etaxonomy.taxeditor/deploy_nightly.sh -text eu.etaxonomy.taxeditor/eu.etaxonomy.taxeditor.product -text eu.etaxonomy.taxeditor/plugin_customization.ini -text eu.etaxonomy.taxeditor/pom.xml -text diff --git a/eu.etaxonomy.taxeditor/deploy_nightly.sh b/eu.etaxonomy.taxeditor/deploy_nightly.sh new file mode 100755 index 000000000..8bc30efff --- /dev/null +++ b/eu.etaxonomy.taxeditor/deploy_nightly.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# testing +WORKSPACE="/Users/n.hoffmann/Documents/workspace/taxeditor/trunk" + +PRODUCT_DIR="$WORKSPACE/eu.etaxonomy.taxeditor/target/products" + +DEPLOYMENT_SERVER="wp5.e-taxonomy.eu" +DEPLOYMENT_DIR="/var/www/download/taxeditor/nightly" + +# bash check if directory exists +if [ ! -d $PRODUCT_DIR ]; then + echo "Target directory does not exist: $PRODUCT_DIR" + exit 1 +fi + +PRODUCTS=$(ls $PRODUCT_DIR/eu.etaxonomy.taxeditor.product-*.zip) + +if [ ! -e $PRODUCTS ]; then + echo "No products in target folder." + exit 1 +fi + +for FILE in $PRODUCTS; do + scp $FILE root@$DEPLOYMENT_SERVER:$DEPLOYMENT_DIR +done + +