给定现有的YAML,Azure DevOps通过REST API创建生成定义

问题描述:

我在一个现有的Git存储库中有100多个YAML文件,每个文件都定义了自己的构建管道.我正在尝试创建一个PowerShell脚本来创建这些构建定义,因此我不必花费数小时使用Web UI来手动添加新的构建定义并指向它们各自的YAML文件.

I have over 100 YAML files within an existing Git repo, each defining their own build pipeline. I am trying to create a PowerShell script to create these build definitions so I don't have to spend hours using the web UI to manually add new build definitions and point to their respective YAML files.

我遇到了类似的问题和资源,但是无法使该脚本正常工作.

I've come across similar questions and resources, but haven't been able to get this script to work.