jenkins job 远程编写并执行脚本
#!/bin/bash
#set -ex
#BUILD_ID=DONTKILLME
ssh root@192.168.1.11 "echo -e "cd /home/dd/dd/nlp
git clone http://git.xxx.com:83/kamala/kamala-product/kamala-aimarket/ocr.git
ps -ef | grep 11111 | grep -v grep | awk '{print $2}' | xargs kill -9
source activate ocr_low
nohup python -u PythonRPCImpl.py 192.168.1.11 11111 > nlp_server_$(date +%Y%m%d)_11111.log 2>&1 &
python load_model.py config.yaml
cd /home/dd/dd/nlp/ocr/layer/ctpn
wget ftp://192.168.1.22:21/checkpoints --ftp-user=ftpadmin --ftp-password=dd -r
mv /home/dddd/nlp/ocr/layer/ctpn/192.168.1.33/* /home/dd/nlp/ocr/layer/ctpn
rm -rf /home/ddddd/nlp/ocr/layer/ctpn/192.168.1.33" > /home/dd/nlp/dataexa-nlp-65-test.sh"
ssh root@192.168.1.65 bash /home/dataexa/dataexa/nlp/dataexa-nlp-65-test.sh