2013-03-26 84 views

回答

1

正如我提到的「How to get latest tag name?」,使用git describe就足以讓最後一個標籤:

git describe --abbrev=0   # shows only annotated tags. 
git describe --abbrev=0 --tags # includes lightweight (non-annotated) tags. 

如果TeamCity的可以調用的設置用於第二作業的Source Control parameters性質的第一份工作,您可以將該屬性與最新的標記一起用作構建的值。