简体   繁体   English

如何将参数传递给在 Microsoft Power Automate 中创建的 Azure DevOps Build 队列操作?

[英]How to pass a parameter to Azure DevOps Build queue action created in Microsoft Power Automate?

I have added my custom parameters to the build definition for a given project in Azure DevOps.我已将自定义参数添加到 Azure DevOps 中给定项目的构建定义中。 I want to send values to these added parameters via Power Automate.我想通过 Power Automate 向这些添加的参数发送值。

I added parameters and tried to pass these parameters in the action step of the workflow, but could not see the values coming in DevOps pipeline.我添加了参数并尝试在工作流的操作步骤中传递这些参数,但无法看到 DevOps 管道中的值。

Here's the steps I have already:这是我已经完成的步骤:

  1. Clicked on required Build Definition in the Build Pipelines在构建管道中单击所需的构建定义
  2. Clicked on EDIT点击编辑
  3. Clicked on the Variables tab单击“变量”选项卡
  4. Added my custom variables to the build pipeline将我的自定义变量添加到构建管道

Now I want to pass values to there custom variables or parameters externally specifically through Microsoft Work Flow using the QUEUE A BUILD ACTION.现在我想使用 QUEUE A BUILD ACTION 通过 Microsoft 工作流将值传递给外部的自定义变量或参数。

Is this doable or can it only be used internally in the build pipeline, eg these variables cannot be accessed or values cannot be passed through external sources like Microsoft Power Automate?这是可行的还是只能在构建管道内部使用,例如无法访问这些变量或无法通过 Microsoft Power Automate 等外部源传递值?

If this is doable, can you please let us know how to pass the values to these variables externally and how to see them in the build pipeline that the values have been passed to these variables so that we can use it in the other steps of build pipeline?如果这是可行的,您能否让我们知道如何将值从外部传递给这些变量,以及如何在构建管道中看到它们已传递给这些变量的值,以便我们可以在构建的其他步骤中使用它管道?

The point to note is: the parameter should be in JSON format需要注意的一点是:参数应该是JSON格式

I don't know what parameters you've set, but I can successfully pass the parameter to the build pipeline through the following setting.不知道你设置了什么参数,但是我可以通过下面的设置成功地将参数传递给构建管道。 You can refer to the following instructions:您可以参考以下说明:

排队一个新的构建步骤 运行持续时间和状态 PowerShell 脚本输出

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用于在 Azure DevOps 中侦听事件的 Microsoft Power Automate Alternative - Microsoft Power Automate Alternative for listening events in Azure DevOps Power Automate - Azure DevOps 集成 - 在项目待办事项和区域路径待办事项中创建工作项 - Power Automate - Azure DevOps Integration - Work Item Getting Created In Project Backlog and Area Path Backlog Azure DevOps在发布阶段之间无法传递参数 - Azure DevOps pass parameter between release stages not build 如何将预定义的管道构建参数传递给 Azure DevOps 管道中的模板? - How can I pass a pre-defined pipeline build parameter to a template in Azure DevOps pipelines? 如何将列表作为构建参数传递给 Azure DevOps Server 2019(本地)中的 YAML 模板? - How to pass a list as build parameter to a YAML template in Azure DevOps Server 2019 (on-prem)? 如何使用 Azure DevOps REST API 对构建进行排队 - How to Queue a Build Using Azure DevOps REST API in Python? 如何在 Azure DevOps 中配置 Webhook 并将其与 Power Automate 集成以启用交互/连接? - How to configure a Webhook in Azure DevOps and integrate it with Power Automate to enable interaction/connection? 如何使用 Power automate flow 在 Azure Devops Bug 的讨论点中添加 @mentions - How can I add @mentions in the discussion point of Azure Devops Bug using Power automate flow 无法使用其他帐户登录 - Azure DevOps 连接器连接到 Power Automate - Unable to log in with different account - Azure DevOps connector to Power Automate Power Automate - Azure Devops - 创建带附件的工作项 - Power Automate - Azure Devops - Create Work Item With Attachments
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM