microsoft / microsoft/azure-devops-python-api

Getting The request specifies YAML override content but that is allowed only for dry run builds error

未关闭
#394 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Python
星标
684
派生
218
平均合并
8 天 10 小时
30 天内合并 PR
1

描述

while trying to override the azure devops azure-pipelines.yml file using python script through azure devops sdk getting below error:
Error: azure.devops.exceptions.AzureDevOpsServiceError: The request specifies YAML override content but that is allowed only for dry run builds.
could you please have a look into this and provide the solution.

Note: using azure-devops-6.0.0b4 version.

Execution logs:

Traceback (most recent call last):
File "test_demo.py", line 120, in
response = client_p.run_pipeline(project=project, run_parameters=res, pipeline_id=x)
File "C:\Program Files\lib\site-packages\azure\devops\v6_0\pipelines\pipelines_client.py", line 241, in run_pipeline
content=content)
File "C:\Program Files\lib\site-packages\azure\devops\client.py", line 106, in _send
response = self._send_request(request=request, headers=headers, content=content, media_type=media_type)
File "C:\Program Files\lib\site-packages\azure\devops\client.py", line 69, in _send_request
self._handle_error(request, response)
File "C:\Program Files\lib\site-packages\azure\devops\client.py", line 272, in _handle_error
raise AzureDevOpsServiceError(wrapped_exception)
azure.devops.exceptions.AzureDevOpsServiceError: The request specifies YAML override content but that is allowed only for dry run builds.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 test_demo.py 中的 run_pipeline 调用以及 pipelines_client.py 第 241 行的请求构造开始,并以报告的 azure-devops-6.0.0b4 行为作为上下文。重现该请求,并确定其 YAML 覆盖内容与服务的 dry-run 限制之间的关系;完成的标准是记录受支持的请求结构,或确认一个可复现的 SDK 缺陷。

由索引模型根据 Issue 内容生成。

评估

技术栈
azure, python
领域
api, devops
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。