Manual deployment of Jenkins project script configuration tutorial, jenkins script

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.