1
0

build.sh 333 B

123456789101112131415161718
  1. #!/bin/sh
  2. SCRIPT_HOME=$(cd $(dirname $0); pwd)
  3. cd $SCRIPT_HOME/..
  4. mvn clean package -DskipTests assembly:assembly
  5. cd $SCRIPT_HOME/target/datax/plugin/writer/
  6. if [ -d "eswriter" ]; then
  7. tar -zcvf eswriter.tgz eswriter
  8. cp eswriter.tgz $SCRIPT_HOME
  9. cd $SCRIPT_HOME
  10. ansible-playbook -i hosts main.yml -u vagrant -k
  11. fi