开发者

QuickBuild: How can I create a builder to open a tarball package (tar.gz) whose name will change with each version?

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 pack开发者_运维知识库age 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?


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:

Control build version

If you want to control the build version from QuickBuild side, please follow below steps:

  1. Change the POM file and define the project version as ${buildVersion}. Do not forget to commit the file into your SCM after change.
  2. Define a build property like below when define the Maven build step:

    buildVersion=${build.version}
    

There are maybe other options but I must admit that my knowledge (zero) of QuickBuild is very limited


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜