简体   繁体   中英

Build version number for testing

I have a web application project which is build using maven script. But unfortunately increment the build version number in POM file in every build is not allowed.

We have a requirement to generate a build version number every time we share a build to testing team. Testing team can be verified the number, If tester cannot see the version then the build will be simply rejected.

What is the best way to handle this.

  1. Shall i add a version number to the web page, which can be seen by the testers to verify the number.

  2. I do not have any other solution now.

You can do it through the resources plugin in maven: http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

The file being filtered can be a properties file, which will be read by the system, or it could be a properties file which gets the value during release (Jenkins param build) or it could be branded directly into a web page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM