1
|
#!/bin/bash
|
2
|
|
3
|
# local testing
|
4
|
#WORKSPACE="/Users/n.hoffmann/Documents/workspace/taxeditor/trunk"
|
5
|
# NOTE by AM (2022-06-07): this is probably outdated and can be removed as
|
6
|
# we build with maven/tycho/jenkins now. Before removing compare with current
|
7
|
# configuration
|
8
|
|
9
|
PRODUCT_DIR="$WORKSPACE/eu.etaxonomy.taxeditor/target/products"
|
10
|
|
11
|
DEPLOYMENT_SERVER="cybertaxonomy.eu"
|
12
|
DEPLOYMENT_DIR="/var/www/download/taxeditor/nightly"
|
13
|
|
14
|
# bash check if directory exists
|
15
|
if [ ! -d $PRODUCT_DIR ]; then
|
16
|
echo "Product directory does not exist: $PRODUCT_DIR"
|
17
|
exit 1
|
18
|
fi
|
19
|
|
20
|
PRODUCTS=$(ls $PRODUCT_DIR/eu.etaxonomy.taxeditor.product-*.zip)
|
21
|
|
22
|
if [ ! $PRODUCTS ]; then
|
23
|
echo "No products in product directory: $PRODUCT_DIR"
|
24
|
exit 1
|
25
|
fi
|
26
|
|
27
|
for FILE in $PRODUCTS; do
|
28
|
scp $FILE root@$DEPLOYMENT_SERVER:$DEPLOYMENT_DIR
|
29
|
done
|
30
|
|
31
|
|