1.在jenkins中创建一个自由风格的job:
配置git源代码仓库:
构建机制的配置:
配置执行shell脚本:
ps -ef | grep 0.0.0.0:8088 | grep -v grep | awk '{print $2}' | xargs kill -9
echo "=============Finish to kill release wiki real process =================="
BUILD_ID=DONTKILLME
echo "=========Start to run real server========="
cd /home1/irteam/projects/test/tool_projects/django2
git pull
#nohup python manage.py runserver 0.0.0.0:8088 &
nohup python manage.py runserver 0.0.0.0:8088 > nohup.out &
标签:grep,python,0.0,8088,Django,nohup,jenkins From: https://www.cnblogs.com/pingguomang/p/17926392.html