QuickBuild:如何创建一个构建器来打开一个 tarball 包 (tar.gz),其名称会随每个版本而变化?
我正在使用 PMEase QuickBuild 执行 Maven2 项目的自动构建,并进行夜间健全性测试以确保没有任何损坏。
测试需要解压由自动化 Maven2 项目创建的包。问题是由于项目版本一直在增加,包名称经常更改。
有谁知道我如何配置 QuickBuild 来获取版本(最好是从各个组件的 POM 文件中),如果可能的话?
I'm using PMEase QuickBuild to perform automated builds of our Maven2 projects and a nightly sanity test to ensure nothing is broken.
The test needs to untar packages which are created by the automated Maven2 projects. The problem is that the package names change frequently due to project versions being incremented all the time.
Does anyone know how I can configure QuickBuild to pick up the version (ideally from the POM file of the individual components), if this is possible at all?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道这是否适合您,但看起来您可以反过来做。引用 使用 Maven 构建:
也许还有其他选择,但我必须承认我对 QuickBuild 的了解(零)非常有限
I don't know if this is an option for you but it looks like you can do it the other way around. Quoting Build with Maven:
There are maybe other options but I must admit that my knowledge (zero) of QuickBuild is very limited
我通过让 QuickBuild 执行一个 shell 脚本来解决这个问题,该脚本使用通配符进行解压,类似于以下内容(以避免计算确切的版本):
tar xzf filename-*.tar.gz
我无法理解不知道如何在 QuickBuild 中执行此操作,因此我将工作转移到 shell 脚本中。
I created a work around to this issue by having QuickBuild execute a shell script which did the untarring by using wildcards, similar to the following (to avoid computing the exact version):
tar xzf filename-*.tar.gz
I couldn't figure out how to do this in QuickBuild, so I offloaded the work to the shell script.