App Warehouse and release specifications

Source: Internet
Author: User

App Publishing System standard

1, Name of code warehouse:

Name the code warehouse with the app name, such as Appuserservice, follow the app naming conventions, and name your existing app to see the CMDB.


2, the Establishment of Code branch:

The code must contain three branch:master, Uat, Dev, respectively, corresponding to the production, testing, development environment


3, dynamic packaging mechanism

The code needs to support dynamic packaging mechanism (profile configuration), different environment settings and branch named the same, that is mvn clean install-p master/uat/dev


4, the establishment of code tag:

Code must be tagged before release, production environment: pro_201603281048, test environment: uat_201603281048, development environment: dev_201603281048


5, Code catalog specifications and Examples:

A tomcat-dependent project that provides init.script,web.xml,server.xml,logrotate four profiles (with template download at the bottom) and a test script check.sh (for app-initiated tests) Users according to their own project to modify the actual situation, Jenkins on the completion of the compilation package, the generation of appapiserver.zip files, unpacked, the file and directory structure as follows:

650) this.width=650; "class=" Confluence-embedded-image "title=" Research Center > App Warehouse and Release specification > image2016-5-3 8:30:11.png "src = "http://wiki.cheyaoshicorp.com/download/attachments/9080351/image2016-5-3%208%3a30%3a11.png?version=1& Modificationdate=1462235411000&api=v2 "alt=" image2016-5-3%208%3a30%3a11.png?version= "/>


Standalone Java projects that do not rely on Tomcat, provide init.script,logratate two profiles and a test script check.sh (for app-initiated tests), which users modify according to their actual project After compiling the package on Jenkins, the Apporderservice.zip file is generated and the file and directory structure is as follows:

650) this.width=650; "class=" Confluence-embedded-image "title=" Research Center > App Warehouse and Release specification > Image2016-4-8 10:57:42.png " Src= "Http://wiki.cheyaoshicorp.com/download/attachments/9080351/image2016-4-8%2010%3A57%3A42.png?version=1 &modificationdate=1460084262000&api=v2 "alt=" Image2016-4-8%2010%3a57%3a42.png?version "/>

With regard to the check.sh script, the result of the run must return a value of "success/failed".


6,init.script,server.xml,logrotate configuration file Template

Init.script does not rely on Tomcat's standalone project startup scripts, which users modify according to their actual project

Init.script-tomcat relies on Tomcat's project startup scripts, which the user modifies according to the actual situation of the project (the modified file name is Init.script, which is used only to differentiate)

Logrotate Log cutting configuration, users according to the actual situation of their projects to modify

Server.xml Tomcat Master profile, user modified according to the actual situation of their project

Web. XML default initialization configuration file, user changes according to the actual situation of their project

check.sh Check Script



This article is from the "Zengestudy" blog, make sure to keep this source http://zengestudy.blog.51cto.com/1702365/1844751

App Warehouse and release specifications

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.