Installation and configuration of teamcity+svn+apache-ant on Windows

Source: Internet
Author: User

Software version to use:

teamcity:teamcity-7.1.4

svn:1.6.11

ant:apache-ant-1.9.0

svnant:svnant-1.3.1

======================================================================================

Installation configuration TeamCity:

1. The local installation TeamCity, always "Next" until completed, this will appear as shown in the Agent Configuration Properties box, according to the instructions configured:

650) this.width=650; "Name=" image_operate_33501413868250680 "src=" http://s3.sinaimg.cn/mw690/ 005b486dzy6mz5mwrqc32&690 "width=" 503 "height=" 368 "alt=" Installation and configuration of teamcity+svn+apache-ant on Windows "title=" Installation and configuration of teamcity+svn+apache-ant on Windows "style=" Margin:0px;padding:0px;border:0px;list-style:none; "/>

2. After the configuration is complete, open TeamCity in the browser, perform TeamCity initialization, and create the Administrator account:

650) this.width=650; "Name=" image_operate_20741413868275368 "src=" http://s3.sinaimg.cn/mw690/ 005b486dzy6mz5o6ppk62&690 "width=" 496 "height=" 297 "alt=" Installation and configuration of teamcity+svn+apache-ant on Windows "title=" Installation and configuration of teamcity+svn+apache-ant on Windows "style=" Margin:0px;padding:0px;border:0px;list-style:none; "/>

Note: This is the server-side configuration.

3. Create the project, and under the project "Create Build":

650) this.width=650; "Name=" image_operate_29481413868302135 "src=" http://s14.sinaimg.cn/mw690/ 005b486dzy6mz5qchuned&690 "width=" 501 "height=" 164 "alt=" Installation and configuration of teamcity+svn+apache-ant on Windows "title=" Installation and configuration of teamcity+svn+apache-ant on Windows "style=" Margin:0px;padding:0px;border:0px;list-style:none; "/>


Configuration Build:

A total of 8 steps, here only the parameters involved in the configuration and description:

1. Settings

650) this.width=650; "Name=" image_operate_76351413868336487 "src=" http://s10.sinaimg.cn/mw690/ 005b486dzy6mz5rurttd9&690 "alt=" on Windows Teamcity+svn+apache-ant Installation and Configuration "title=" on Windows teamcity+svn+ Installation and configuration of the Apache-ant "style=" margin:0px;padding:0px;border:0px;list-style:none; "/>


2. Version control settings, first to create VCs Root

650) this.width=650; "Name=" image_operate_54711413868500876 "src=" http://s11.sinaimg.cn/mw690/ 005b486dzy6mz5uplh83a&690 "width=" 690 "height=" 245 "alt=" Installation and configuration of teamcity+svn+apache-ant on Windows "title=" Installation and configuration of teamcity+svn+apache-ant on Windows "style=" Margin:0px;padding:0px;border:0px;list-style:none; "/>


Note: teamcity can checkout all files under that path if you just want to checkout part of the specified folder, such as adding a rule:

650) this.width=650; "Name=" image_operate_99881413868450188 "src=" http://s3.sinaimg.cn/mw690/ 005b486dzy6mz5vmeju22&690 "width=" 690 "height=" 353 "alt=" Installation and configuration of teamcity+svn+apache-ant on Windows "title=" Installation and configuration of teamcity+svn+apache-ant on Windows "style=" Margin:0px;padding:0px;border:0px;list-style:none; "/>


3. Set the build script type, the ant script used in this project.

650) this.width=650; "Name=" image_operate_12751413868448966 "src=" http://s9.sinaimg.cn/mw690/ 005b486dzy6mz5xgwcud8&690 "width=" 690 "height=" 374 "alt=" Installation and configuration of teamcity+svn+apache-ant on Windows "title=" Installation and configuration of teamcity+svn+apache-ant on Windows "style=" Margin:0px;padding:0px;border:0px;list-style:none; "/>


4. No configuration, skip.

5. No configuration, skip.

6. No configuration, skip.

7. Configuration parameters, here only the%sourceroot% mentioned above are configured:

650) this.width=650; "Name=" image_operate_70581413868425999 "src=" http://s8.sinaimg.cn/mw690/ 005b486dzy6mz5z3rp187&690 "alt=" on Windows Teamcity+svn+apache-ant Installation and Configuration "title=" on Windows teamcity+svn+ Installation and configuration of the Apache-ant "style=" margin:0px;padding:0px;border:0px;list-style:none; "/>


8. There is no configuration to view the agent connection situation:

650) this.width=650; "Name=" image_operate_59871413868436047 "src=" http://s5.sinaimg.cn/mw690/ 005b486dzy6mz60aejqb4&690 "width=" 690 "height=" 175 "alt=" Installation and configuration of teamcity+svn+apache-ant on Windows "title=" Installation and configuration of teamcity+svn+apache-ant on Windows "style=" Margin:0px;padding:0px;border:0px;list-style:none; "/>


ANT-Related:

ANT-related content can be found in: "Ant&svnant learning Mozart"

Because the ant plugin in the teamcity version does not support the If...else statement of the ant script, you need to configure the supported ant version in Teamcity or copy the class library it relies on directly: Ant-contrib.jar to teamcity installation path:

Teamcity\buildagent\plugins\ant\lib

Svnant Related:

Svnant related content can be found in: "Ant&svnant learning Mozart"

To make teamcity use the SVN-related commands in the Ant script at compile time, this is SVNANT-1.3.1. Place the class library it relies on in the Ant's lib directory:

Teamcity\buildagent\plugins\ant\lib

Note: At first, svnant-1.0 was used, but at compile time "Could not load Definitions from resource" error was changed to 1.3.1, see: Using Svnant in Eclipse Build Failed (Could not load definitions from resource

For more information, please inquire qq:1183810577


This article is from "You 70 years" blog, please be sure to keep this source http://chavaz.blog.51cto.com/6876806/1850797

Installation and configuration of teamcity+svn+apache-ant on Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.