teamcity
TeamCity forgotten admin password – where to look?
From TeamCity 8 you can log in as a super user and change the password that way. You just need to use an empty username and last occurrence of the “super user authentication token” found in the logs\teamcity-server.log file as your password. Please see the following for more information: TeamCity 8 – http://confluence.jetbrains.com/display/TCD8/Super+User TeamCity 9 … Read more
How to debug into my nuget package deployed from TeamCity?
Traditional method Put the pdb in the NuGet package alongside the dll. Add the source code to the Debug Source Files for the solution that references the package. This means you’ll be able to step through code and view exceptions, but you might have to find a file on disk and open it before you … Read more
Change port for TeamCity web server
The port number can be edited in the <TeamCity home>/conf/server.xml file, line <Connector port=”8111″ protocol=”HTTP/1.1″. from Installing and Configuring the TeamCity server
MSBuild in TeamCity of Visual Studio 2012 solution
Actually, you don’t need to install Visual Studio on your CI server. You only need to copy a few folders from a development machine to the same location on the CI server. VS 2015: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications VS 2013: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\WebApplications VS 2012: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web C:\Program Files … Read more
Restart TeamCity server via web interface
This is now available in 2017.2 via the Diagnostics page of the admin area: Now there is also the server Restart button on the Administration | Diagnostics page. /admin/admin.html?item=diagnostics#serverRestart
How to deploy after a build with TeamCity?
This article explains how to call Microsoft’s WebDeploy tool from TeamCity to deploy a web application to a remote web server. I’ve been using it to deploy to a test web server and run selenium tests on check-in. http://www.mikevalenty.com/automatic-deployment-from-teamcity-using-webdeploy/ Install WebDeploy Enable Web config transforms Configure TeamCity BuildRunner Configure TeamCity Build Dependencies The MSBuild arguments … Read more
Why are my PowerShell exit codes always “0”?
This is a known issue with PowerShell. Executing a script with -file returns an exit code of 0 when it shouldn’t. (Update: The links below no longer work. Please look for, or report, this problem on PowerShell: Hot (1454 ideas) – Windows Server) https://connect.microsoft.com/PowerShell/feedback/details/777375/powershell-exe-does-not-set-an-exit-code-when-file-is-used https://connect.microsoft.com/PowerShell/feedback/details/750653/powershell-exe-doesn-t-return-correct-exit-codes-when-using-the-file-option Since using -command wasn’t working for you, you could try … Read more
TeamCity says to use “Build Parameters” instead of “/property:” in an MSBuild step. What does that mean?
You have to add Build Parameters under Properties and environment variables in the configuration ` So in the command line parameters in the Build Step for MSBUild, remove any property that is specified as /p: and add each of those to the Build Parameters ( screenshot above) and give the values
Running multiple TeamCity Agents on the same computer?
Yes, it’s possible: Several agents can be installed on a single machine. They function as separate agents and TeamCity works with them as different agents, not utilizing the fact that they share the same machine. After installing one agent you can install additional one, providing the following conditions are met: the agents are installed in … Read more