Manual deployment of Jenkins project script configuration tutorial, jenkins script
Generally, after a company project is completed, it needs to be deployed to the test environment, where testers perform tests. After a BUG is detected through the test, the developers modify the code and re-deploy the test environment, currently, the company provides Jenkins tools to manually deploy projects. Currently, the content of the deployment script in Jenkins is recorded for future use:
Pid = 'ps-ef | grep/app/tomcat-p2padapter/| grep-v grep | awk '{print $2} ''if [-n" $ pid "]; then kill-9 $ pidelse echo "pid is not find !!! "Firm-rf/app/tomcat-p2padapter/work/Catalina/* rm-rf/apps/tomcat-p2padapter/webapps /*. warrm-rf/app/tomcat-p2padapter/webapps/p2p_adaptercp/home/newsettle/p2p-adapter-split-db-test/p2p_adapter.war/app/tomcat-p2padapter/webapps/cd/app/tomcat-p2padapter/bin/sh startup. sh