Microsoft 流队列 Devops 管道 - 必须提供参数

Microsoft flow queue Devops pipeline - parameter must be provided

我正在尝试使用 Flow 对管道进行排队。

管道具有以下参数:

# Pipeline Trigger
trigger:
- none

# Use parameters as input options
parameters:
- name: location
  displayName: Location?
  type: string
  values:
    - australiaeast
    - uksouth
    - eastus
    - westus2
    - southeastasia

流量:

我收到一个错误:

Could not queue the build because there were validation errors or warnings.
Azure DevOps ActivityId: <id>
Details: {"ClassName":"Microsoft.TeamFoundation.Build.WebApi.BuildRequestValidationFailedException","Message":"Could not queue the build because there were validation errors or warnings.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":null,"RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146232832,"Source":null,"WatsonBuckets":null,"m_logException":false,"m_reportException":false,"m_errorCode":0,"m_logLevel":"warning","m_eventId":3000,"ValidationResults":[{"result":"error","message":"A value for the 'location' parameter must be provided."}

JSON应该没问题。它打算以这种方式工作吗?要传递参数给管道参数?

您的参数应采用以下格式:

[
  {
    "location":"australiaeast"
  }
]

实际上,

[
  {
    "location":"australiaeast"
  }
]

给我“错误的网关”

这确实有效:

{
"location":"uksouth"
}

问题是其他一些参数没有在管道中设置默认值。给它们默认值后,我可以传入参数。