Recipes
Recipes are reusable build steps for TeamCity. Our recipes are distributed via the JetBrains Marketplace and can be added to a build configuration like any other build step — they are configured solely through the input fields of the step.
Using a Recipe
Requirements:
- TeamCity 2025.03 or later
| TeamCity version | Procedure |
|---|---|
| 2025.07 or later | The recipe is used directly from the JetBrains Marketplace. Select it by its ID when adding a build step, for example jjideenschmiede/git-commit-hash. |
| 2025.03 up to 2025.07 | Upload the YAML file of the recipe, which contains the complete recipe, to TeamCity. You find the file in the respective GitHub repository. |
Recipes that determine a value provide it as an environment variable. In subsequent build steps, the value is available as a parameter, for example %env.GIT_COMMIT_SHORT_HASH%.
Store credentials such as tokens as parameters of the type Password in TeamCity and reference this parameter in the input field of the recipe, for example %youtrack.token%. This way the token appears neither in the configuration nor in the build log.
Git Commit Hash
The Git Commit Hash recipe creates a short version of the current Git commit hash and provides it as an environment variable in the build.
GitHub Last Matching Ref
The Fetch Last Matching GitHub Reference recipe fetches the last branch or tag of a GitHub repository that matches a pattern and provides it as an environment variable.
GitHub Upload Release Asset
The GitHub Upload Release Asset recipe uploads a file as an asset to a GitHub release using the GitHub API.
JetBrains Hub Backup Data
The JetBrains Hub Backup Data recipe triggers a backup for a JetBrains Hub instance using the Hub REST API.
YouTrack Database Backup
The YouTrack Database Backup recipe creates a database backup for a YouTrack instance and verifies that the backup completed successfully.