开发者

Specify ant target during Teamcity build run

开发者 https://www.devze.com 2023-02-22 10:50 出处:网络
I am trying to set up a Teamcity build configuration that runs from our build.xml ant script. The ant script contains various targets:

I am trying to set up a Teamcity build configuration that runs from our build.xml ant script.

The ant script contains various targets:

<target name="compile"> ... </target>
<target name="package" depends="compile"> ... </target>
<target name="test" depends="package"> ... </target>
<target name="deploy" depends="test"> ... </target>

My intention is to have the build run the test target a couple of time first (until we get the build right) and then call the deploy target to upload the (now tested project) on our production server.

How can I set the Teamcity configuration settings so I can have a Testing build and a separate Deploy build?

  • Is there a way to prompt the user for the ant target (display a list of targets and select the appropriate one)

or

  • I have to create a sepa开发者_运维技巧rate Teamcity Build configuration (a copy of the test configuration with the only difference being on the ant target)?

Thanks...


You have to create more build configurations.

0

精彩评论

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