fd Blog

Daniel Hilgarth on software development

Basic TeamCity Configuration

Before creating build configurations, you should perform some basic configuration on your TeamCity server.

Integrations

Issue Tracker

Here you can add a connection to an existing issue tracker.

If you are using JIRA as your issue tracker, select “JIRA” as the “Connection Type” and enter the requested information. Please note:

  • “Username” and “Password” are those of a normal JIRA user. You will have to create it in the JIRA administration.
  • When you add a new project in JIRA and want to connect it to TeamCity, you will have the update the “Project Keys” field.

NuGet Settings

If you are a .NET developer, you might want to enable NuGet support.

There are two different settings:

NuGet Server

Enable this, if you want your own NuGet server. This enables you to publish build artifacts to your own NuGet server and use them in your projects as you would any other NuGet package. To be able to actually access this NuGet feed in Visual Studio, you need to add it:

  • Open the NuGet Package Manager options: Tools -> NuGet Package Manager -> Package Manager Settings
  • In the left pane, select “Package Sources”
  • Click the button with the “Plus” icon
  • Enter “TeamCity” in the “Name” field
  • In the “Source” field, enter the value “Authenticated Feed URL” from the configuration page in TeamCity
  • Enter the credentials in the credentials dialog that pops up when you first try to access the server.

NuGet.exe

To be able to actually package NuGet packages, the Build Agents need to know which NuGet.exe they should use.

  • Click on “Fetch NuGet”
  • Select the latest version that is not a beta version
  • Click “Add”

Server Administration

Global settings

Make sure that the “Server URL” reflects the external URL you use to access TeamCity. This should be something like http://<your-server>:8111 or https://<your-server>. It should never be http://localhost:8111.

Authentication

If you don’t want to allow users to register their own user accounts, change the following:

  • Click “Edit” for the *“Built-in” Credentials authentication module.
  • Remove the check in front of “Allow user registration from the login page”
  • Click “Done”
  • Click “Save” at the bottom of the page

Email Notifier

Configure the settings for your mail server.
If you are using Office 365, enter the following info:

  • SMTP host: smtp.office365.com
  • SMTP port: 587
  • Send email message from: An email address that can be used with the credentials that are entered in the following two fields.
  • SMTP login: <username>, e.g. master@fire-development.com
  • SMTP password: The password for the specified username.
  • Secure connection: StartTLS

Comments