The method of deleting Jenkins java
This article introduces the relevant knowledge of "Jenkins java deletion method". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
mkdir -p ${WORKDIR}cp data/wanli_admin_appweb.jar ${WORKDIR}cd ${WORKDIR}pwdps -ef |grep java| grep "server.port=10682" | grep -v grep |awk '{print $2}'| xargs kill -15 1>/dev/null 2>&1 | exit 0sleep 20nohup java -jar ¥.jar --server.port=10682 --spring.profiles.active=production>/dev/null 2>&1 &sleep 20ps -ef |grep java| grep "server.port=10681" | grep -v grep |awk '{print $2}'| xargs kill -15 1>/dev/null 2>&1 |exit 0sleep 20nohup java -jar wanli_admin_appweb.jar --server.port=10681 --spring.profiles.active=production>/dev/null 2>&1 &"Jenkins java deletion method" content introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!