Skip to content

Commit

Permalink
#123 work around OS X missing --ignore-source-args
Browse files Browse the repository at this point in the history
  • Loading branch information
donsizemore committed Oct 18, 2019
1 parent 5273ecb commit 38e9eb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ec2/ec2-create-instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,10 @@ if [ ! -z "$LOCAL_LOG_PATH" ]; then
# 2 logdir should exist
mkdir -p $LOCAL_LOG_PATH
# 3 grab logs for local processing in jenkins
rsync -av -e "ssh -i $PEM_FILE" --ignore-missing-args centos@$PUBLIC_DNS:/tmp/dataverse/target/site $LOCAL_LOG_PATH/
rsync -av -e "ssh -i $PEM_FILE" --ignore-missing-args centos@$PUBLIC_DNS:/tmp/dataverse/target/surefire-reports $LOCAL_LOG_PATH/
# unset -e since os x rsync doesn't include --ignore-missing-args
set +e
rsync -av -e "ssh -i $PEM_FILE" centos@$PUBLIC_DNS:/tmp/dataverse/target/site $LOCAL_LOG_PATH/
rsync -av -e "ssh -i $PEM_FILE" centos@$PUBLIC_DNS:/tmp/dataverse/target/surefire-reports $LOCAL_LOG_PATH/
rsync -av -e "ssh -i $PEM_FILE" centos@$PUBLIC_DNS:/usr/local/glassfish4/glassfish/domains/domain1/logs/server* $LOCAL_LOG_PATH/
fi

Expand Down

0 comments on commit 38e9eb2

Please sign in to comment.