docs/current_docs/getting-started/ci-integrations/teamcity.mdx
TeamCity provides a Dagger Recipe that can be used in any build configuration to call one or more Dagger Functions. The recipe is taken from the JetBrains Marketplace.
When running a CI pipeline with Dagger using TeamCity, the general workflow looks like this:
DAGGER_CLOUD_TOKEN environment variable is set.Running the examples shown below requires:
The following code sample demonstrates how to integrate Dagger with TeamCity. The code is written using the TeamCity Kotlin DSL.
The following is a more complex example demonstrating how to create a TeamCity build that checks out source code, calls a Dagger Function to test the project, and then calls another Dagger Function to build and publish a container image of the project. This example uses a simple Go application and assumes that you have already forked it in the repository connected to the TeamCity project.
TeamCity is a popular CI/CD tool developed by JetBrains.