As I mention in " How to get latest tag name? ", using git describe
can be enough to get the last tag:
git describe --abbrev=0 # shows only annotated tags.
git describe --abbrev=0 --tags # includes lightweight (non-annotated) tags.
If TeamCity can call a first job which set a property used for the Source Control parameters of a second job, you could use that property with the latest tag as a value to build.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.