我使用Visual Studio Online從Team Services(是Visual Studio Online)git存儲庫構建Visual Studio解決方案。構建發生在已在團隊服務中註冊併發布到團隊服務的內部部署構建代理上。標籤git版本從構建 - 標籤沒有在git中找到
在構建定義的「Repository」設置中,我將「Label sources」設置爲「On successful build」,並指定了「Label format」。
構建日誌顯示的版本標籤:
Created ref refs/tags/BuildName - SolutionName - Release_1.2.16134.03 at c1fa2a4b9e0f3365e2269bb947af7819faf40354.
而構建的「神器」選項卡上,它顯示「build.sourceLabel」,並鏈接到:
refs/tags/BuildName - SolutionName ...
然而,當我點擊超鏈接,我得到一個TFS錯誤:
TF401175:The version descriptor <Tag: BuildName - SolutionName - Release_1.2.16134.03 > could not be resolved to a version in the repository RepositoryName
我也不能在本地git中找到任何標記repository:
git pull --tags
git tag
什麼也沒有顯示。
我是否需要任何額外的步驟將我的源標籤從構建代理推送到團隊服務?在this link頂部的答案似乎表明我所做的是正確的(但我沒有使用託管池)。
我的倉庫的設置是這樣的:
任何人都有這個問題?有什麼建議麼?
在此先感謝。
我無法重現此問題,您是否可以分享「存儲庫」選項卡中設置的屏幕截圖? –