Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I run steps in team city before team city does an update from my repository?

been thinking about wanting to do some custom things before team city does any sort of svn updates or modifications checks.

Thanks.

like image 353
topwik Avatar asked Dec 13 '11 21:12

topwik


People also ask

How do you edit building steps in TeamCity?

In Build Steps, click Auto-detect build steps, and then select the proposed steps you want to add to the current build configuration. You can change their settings afterwards. When scanning the repository, TeamCity progressively searches for project files on the two highest levels of the source tree.

How do I start a new job on TeamCity?

To add your first project, click Administration in the upper right corner of the TeamCity UI and then click Create project. There are several ways to create a project in TeamCity: automatically from a repository URL, from a connection to a specific VCS, or manually.

How do I disable build step in TeamCity?

You can copy an build target and remove /disable the specific steps. You can parameterize your steps so that if you select /deselect a checkbox a specific build step won't run.


1 Answers

Yes you can do. The first thing probably you may have to do is to stop the automatic checkout by editing the VCS Settings under Build Configurations

enter image description here

But leave the build triggering mechanism unaltered. After that, do your customized things as the first step in the build step. Then do a checkout manually using another shell script. Then continue with your build. This will require you adding more steps in the build steps.

enter image description here

like image 69
bragboy Avatar answered Oct 28 '22 16:10

bragboy