简体   繁体   中英

Can teamcity be made to build the latest tag in a git branch?

我知道这个问题是一年前在这里的,并且有一个手动的答案,但我想知道是否有可能使用git describe来获取最新的标签,然后使用给出的更手动的方法之前?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM