简体   繁体   English

构建版本号进行测试

[英]Build version number for testing

I have a web application project which is build using maven script. 我有一个使用maven脚本构建的Web应用程序项目。 But unfortunately increment the build version number in POM file in every build is not allowed. 但是不幸的是,不允许在每个构建中增加POM文件中的构建版本号。

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 您可以通过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. 被过滤的文件可以是系统将读取的属性文件,也可以是在发布(Jenkins param build)期间获取值的属性文件,也可以将其直接标记为网页。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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