Added deploy script for nightly builds
authorn.hoffmann <n.hoffmann@localhost>
Mon, 15 Aug 2011 13:12:46 +0000 (13:12 +0000)
committern.hoffmann <n.hoffmann@localhost>
Mon, 15 Aug 2011 13:12:46 +0000 (13:12 +0000)
.gitattributes
eu.etaxonomy.taxeditor/deploy_nightly.sh [new file with mode: 0755]

index f6c2dc66fa74db39b2ecfadeaa6c2bb6f021887d..8257ee1fd918aa704922ef2cc7d419a4dc59ce2f 100644 (file)
@@ -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.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
 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 (executable)
index 0000000..8bc30ef
--- /dev/null
@@ -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
+
+