- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在尝试使用 azure devops REST API 创建管道时,我收到“值不能为空。\r\n参数名称:inputParameters”。 Ø
任何人都可以建议 API 调用的请求正文参数应该是什么吗?
我的实现:
API CALL (POST) : https://dev.azure.com/{org}/{project}/_apis/pipelines?api-version=6.0-preview.1
Request Body:
{
"configuration": [
{
"type": "yaml",
"folder": "./",
"name": "trl-pipeline"
}
]
}
Response:
{
"$id": "1",
"innerException": null,
"message": "Value cannot be null.\r\nParameter name: inputParameters",
"typeName": "System.ArgumentNullException, mscorlib",
"typeKey": "ArgumentNullException",
"errorCode": 0,
"eventId": 0
}
最佳答案
请在您的请求正文中添加存储库 ID 和名称。这是我的示例:
1.我在我的 azure 存储库中创建了一个 yaml 文件。
2.我的请求正文如下所示:
POST https://dev.azure.com/{organization}/{project}/_apis/pipelines?api-version=6.0-preview.1
{
"configuration":{
"path": "azure-pipelines.yml",
"repository":{
"id": "{repo id}",
"type": "azureReposGit",
"name": "{repo name}"
},
"type":"yaml"
},
"name":"PipelineName"
}
关于azure - 值不能为空。\r\n参数名称 : inputParameters,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64257812/
在尝试使用 azure devops REST API 创建管道时,我收到“值不能为空。\r\n参数名称:inputParameters”。 Ø 任何人都可以建议 API 调用的请求正文参数应该是什么
在尝试使用 azure devops REST API 创建管道时,我收到“值不能为空。\r\n参数名称:inputParameters”。 Ø 任何人都可以建议 API 调用的请求正文参数应该是什么
我正在为 Dynamics CRM 2011 创建一个插件,以便在验证潜在客户时执行。我用这个代码 IPluginExecutionContext context = (IPluginExecutio
我正在尝试了解来自 here 的插件示例. 有这个条件: // The InputParameters collection contains all the data passed in the m
我是一名优秀的程序员,十分优秀!