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 摘要。