以下内容适用于 Azure DevOps 服务(云):
curl ... https://vssps.dev.azure.com/acme/_apis/graph/users
Run Code Online (Sandbox Code Playgroud)
但是,对于我的本地安装,以下所有选项均收到 404 错误:
curl ... https://tfs.acme.com/_apis/graph/users
curl ... https://vssps.tfs.acme.com/_apis/graph/users
curl ... https://tfs.acme.com/test-collection/_apis/graph/users
Run Code Online (Sandbox Code Playgroud)
我知道这不是凭据问题,因为我成功地进行了其他 api 调用。
我找不到任何本地文档。云版本:https://learn.microsoft.com/en-us/rest/api/azure/devops/graph/users/list ?view=azure-devops-rest-5.1
tfs azure-devops azure-devops-rest-api azure-devops-server azure-devops-server-2019
所以我有 1 个项目的 11 个存储库,它们都是微服务。
我有一个名为 DevOps 的存储库,其中必须跨 YAML 构建共享的所有内容都使用 Git 子模块共享。
出于某种原因,我似乎无法引用 git 模块中的 yaml 模板。
选项:
当我尝试通过触发器或手动运行构建时,出现错误:
在存储库http://A.azuredevops.local/DefaultCollection/A/_git/A 分支 refs/heads/master 版本 db2884cc2d188b8e281f78e8b27e4fd74ce77d58 中找不到文件 /DevOps/A/Templates/A-test-template.yml,未 预期的步骤类型。 '步骤模板参考'
YAML:
steps:
# Run Unit Tests
- template: DevOps/A/Templates/A-test-template.yml
Run Code Online (Sandbox Code Playgroud)
解决方案:
使用 YAML:
resources:
repositories:
- repository: RepositoryAlias
type: git
name: "ProjectName/RepositoryName"
steps:
- template: DevOps/A/Templates/A-test-template.yml@RepositoryAlias
Run Code Online (Sandbox Code Playgroud) git yaml git-submodules azure-devops azure-devops-server-2019
尝试将 TFS 2018 升级到 DevOps Server 2019。卡在准备情况检查屏幕上。它要我删除 elasticsearch 服务。
服务已停止。
并且服务属性中提到的路径,特别是搜索文件夹,不存在C:\Program Files\Microsoft Team Foundation Server 2018\Search\ES\elasticsearchv5\bin\elasticsearch-service-x64.exe //RS//elasticsearch-service-x64 不存在。
无法service -remove从 bin 文件夹运行。
相关日志:
[Info @07:49:10.510] +-+-+-+-+-| Running Service Not Installed: Verifying the following Windows service is not installed: elasticsearch-service-x64 |+-+-+-+-+-
[Info @07:49:10.511]
[Info @07:49:10.511] +-+-+-+-+-| Verifying the following Windows service is not installed: elasticsearch-service-x64 |+-+-+-+-+-
[Info @07:49:10.511] Starting Node: VSEARCHSERVICENOTINSTALLED
[Info @07:49:10.511] NodePath : VINPUTS/Conditional/Progress/Conditional/VSEARCHSERVICENOTINSTALLED
[Info @07:49:10.511] Verifying that the following service is NOT …Run Code Online (Sandbox Code Playgroud) 我们正在使用 springboot、Jacoco 和 azure devops,如果代码覆盖率低于 70%,我们需要中断管道,我如何使用 azure pipeline 来实现这一点。请建议。
jacoco azure-devops azure-pipelines azure-devops-server-2019