Skip to content

jjideenschmiede/teamcity-git-commit-hash-recipe

Repository files navigation

Git Commit Hash

This recipe provides a simple way to get the current Git commit hash in TeamCity build configurations. In the default configuration, the commit hash is available as environment variable %env.GIT_COMMIT_SHORT_HASH%.


TeamCity Certified Partner

TeamCity Recipes & Plugins, YouTrack Apps & more

J&J Ideenschmiede GmbH - Your Partner for JetBrains Solutions

We are TeamCity Certified and YouTrack Certified developers, specializing in custom solutions for JetBrains products.

👉🏼 Visit our website to learn more about our services.


Requirements

You need to have TeamCity 2025.03 or later installed to use this recipe. If you are using an older version than 2025.07, you need to upload the git-commit-hash.yml, which contains the complete recipe. If you are using TeamCity 2025.07 or later, you can use the jjideenschmiede/git-commit-hash recipe directly from the JetBrains Marketplace.

Build

If you want to build this recipe, you can use the following command:

gradle recipe

Help & Support

If you have any questions or need support, feel free to reach out to us via e-mail or visit our website.

About

Our TeamCity Recipe to expose a short Git commit hash as an environment variable.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Contributors

Languages