microsoft / azure-devops-python-api

Azure DevOps Python API
https://docs.microsoft.com/azure/devops/integrate/index?view=azure-devops
MIT License
587 stars 200 forks source link

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

Open lokeshsaini164 opened 3 years ago

lokeshsaini164 commented 3 years ago

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 commented 3 years ago

hi All,

do we have any update on this issue?

NJannasch commented 2 years ago

Any minimal example to reproduce?