gpt4 book ai didi

azure - 我可以从 Jenkins 触发 Azure DevOps 构建吗

转载 作者:行者123 更新时间:2023-12-02 09:08:07 25 4
gpt4 key购买 nike

我们使用 Jenkins 作为构建协调器,并且只是在特定项目中增加 Azure DevOps 的使用。我们的构建工作正常,从 Git 中提取代码并创建我们需要的工件,无论我们是从 git 自动触发还是手动触发。

不过,我仍然希望 Jenkins 成为协调者,以便我们的管道对于非我们团队的人来说更加明显。

有很多关于从 DevOps 触发 Jenkins 的信息,但我还没有找到任何支持我们需要的内容。有可能吗?您能分享一些例子吗?

最佳答案

您可以使用其 REST API 在 Azure DevOps 中触发构建。 API for triggering build is documented here .

基本上,它是对以下端点的 POST 操作:

POST https://dev.azure.com/{organization}/{project}/_apis/build/builds?api-version=5.0

authentication can be done using OAuth or Personal Access Token as documented here .

根据您选择的技术,there may also be a client object model you can use .

A powershell sample can be found here .

关于azure - 我可以从 Jenkins 触发 Azure DevOps 构建吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55629950/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com