我正在使用 Azure DevOps 處理兩個專案,我將命名P1為P2. P1是一個包含一些我想在P2. 我想使用
我使它作業的唯一方法是通過替換提供訪問令牌:
git push https://dev.azure.com/<organisation>/GitSubtreeProofOfConcept/_git/git-subtree-child
經過
git push https://$(System.AccessToken)@dev.azure.com/<organisation>/GitSubtreeProofOfConcept/_git/git-subtree-child.
即使我走這條路,我仍然有另一個錯誤
/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/58591c72-da26-4758-9d24-6270bbc6a1e5.sh
release/AzurePipeline
1/1 (0) [0]
Created branch 'extract-child-subtree'
98b98c18804a186ffa5033c9caa39eaef14fbb6d
remote: TF401019: The Git repository with name or identifier git-subtree-child does not exist or you do not have permissions for the operation you are attempting.
fatal: repository 'https://dev.azure.com/<organisation>/GitSubtreeProofOfConcept/_git/git-subtree-child/' not found
Deleted branch extract-child-subtree (was 98b98c1).
但正如您所看到的,存盤庫存在并且有我試圖推送到的分支(release/AzurePipeline由作業本身列印)。


在此先感謝您的幫助!
uj5u.com熱心網友回復:
根據您的描述,有兩個明顯的問題。
1、權限分配錯誤。
從您的螢屏截圖中:

因此,在這種情況下,“身份驗證”身份是集合級別(組織級別),但您正在嘗試將權限分配給專案級別:

您應該為此服務帳戶分配權限:

2,已經禁止YAML管道訪問存盤庫。
您已禁用從 YAML 管道訪問存盤庫:

但是您使用的是 YAML 管道。在這種情況下,您的管道將無法更改存盤庫。
我注意到這個設定的顏色是灰色的,你需要去組織設定來改變它。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/529424.html
