azure-devops-python-api icon indicating copy to clipboard operation
azure-devops-python-api copied to clipboard

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

Open lokeshsaini164 opened this issue 4 years ago • 2 comments

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.

lokeshsaini164 avatar Oct 20 '21 12:10 lokeshsaini164

hi All,

do we have any update on this issue?

lokeshsaini164 avatar Oct 21 '21 08:10 lokeshsaini164

Any minimal example to reproduce?

NJannasch avatar Jan 23 '22 19:01 NJannasch