Azure / Azure/azure-cli

Erro no upload de artefatos universais

Open
#32,256 4 comments 1 reaction 2 assignees Claimed by @a0x1ab View on GitHub
act-observability-squad Artifacts Auto-Assign Auto-Resolve bug customer-reported Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

Bom dia, tudo bem?
Estou tentando fazer o upload de um arquivo no azure artifacts, dentro de uma pipeline e estou recebendo um erro.

### Related command

Comando sendo executado:
az artifacts universal publish --organization https://dev.azure.com/totvstfs/ --project="ti-cloud" --scope project --feed protheus_rpos_pre --name $(PROTHEUS_SOURCE_FONTES) --version 0.0.$(Release.ReleaseId) --description $description --path $(PROTHEUS_WORKING_PATH)\$(PROTHEUS_SOURCE_FONTES).zip

### Errors

Erro ao executar o comando:
2025-10-14T10:58:25.3852882Z ##[error]ERROR: The command failed with an unexpected error. Here is the traceback:
2025-10-14T10:58:25.3885904Z ##[error]ERROR: [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 666, in execute
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 734, in _run_jobs_serially
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_job
File "C:\Users\ti.devops\.azure\cliextensions\azure-devops\azext_devops\dev\common\exception_handler.py", line 31, in azure_devops_exception_handler
reraise(*sys.exc_info())
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\six.py", line 719, in reraise
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 703, in _run_job
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 336, in __call__
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 120, in handler
File "C:\Users\ti.devops\.azure\cliextensions\azure-devops\azext_devops\dev\artifacts\universal.py", line 56, in publish_package
return artifact_tool.publish_universal(organization, project, feed, name, version, description, path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ti.devops\.azure\cliextensions\azure-devops\azext_devops\dev\common\artifacttool.py", line 53, in publish_universal
return self.run_artifacttool(organization, args, "Publishing")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ti.devops\.azure\cliextensions\azure-devops\azext_devops\dev\common\artifacttool.py", line 67, in run_artifacttool
proc = self._tool_invoker.run(command_args, new_env, initial_progress_message, _process_stderr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ti.devops\.azure\cliextensions\azure-devops\azext_devops\dev\common\external_tool.py", line 74, in run
self.start(command_args, env)
File "C:\Users\ti.devops\.azure\cliextensions\azure-devops\azext_devops\dev\common\external_tool.py", line 33, in start
self._proc = subprocess.Popen(
^^^^^^^^^^^^^^^^^
File "subprocess.py", line 1026, in __init__
File "subprocess.py", line 1538, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified

2025-10-14T10:58:25.4032983Z ##[error]To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
2025-10-14T10:58:25.4110299Z ##[error]

### Issue script & Debug output

File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 336, in __call__
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 120, in handler
File "C:\Users\ti.devops\.azure\cliextensions\azure-devops\azext_devops\dev\artifacts\universal.py", line 56, in publish_package
return artifact_tool.publish_universal(organization, project, feed, name, version, description, path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ti.devops\.azure\cliextensions\azure-devops\azext_devops\dev\common\artifacttool.py", line 53, in publish_universal
return self.run_artifacttool(organization, args, "Publishing")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ti.devops\.azure\cliextensions\azure-devops\azext_devops\dev\common\artifacttool.py", line 67, in run_artifacttool
proc = self._tool_invoker.run(command_args, new_env, initial_progress_message, _process_stderr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ti.devops\.azure\cliextensions\azure-devops\azext_devops\dev\common\external_tool.py", line 74, in run
self.start(command_args, env)
File "C:\Users\ti.devops\.azure\cliextensions\azure-devops\azext_devops\dev\common\external_tool.py", line 33, in start
self._proc = subprocess.Popen(
^^^^^^^^^^^^^^^^^
File "subprocess.py", line 1026, in __init__
File "subprocess.py", line 1538, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
DEBUG: cli.knack.cli: Event: Cli.PostExecute []
INFO: az_command_data_logger: exit code: 1
INFO: cli.__main__: Command ran in 1.235 seconds (init: 0.333, invoke: 0.902)
INFO: telemetry.main: Begin splitting cli events and extra events, total events: 1
INFO: telemetry.client: Accumulated 0 events. Flush the clients.
INFO: telemetry.main: Finish splitting cli events and extra events, cli events: 1
INFO: telemetry.save: Save telemetry record of length 7904 in cache file under C:\Users\ti.devops\.azure\telemetry\20251014092740050
INFO: telemetry.main: Begin creating telemetry upload process.
INFO: telemetry.process: Creating upload process: "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry\__init__.pyc C:\Users\ti.devops\.azure C:\Users\ti.devops\.azure\telemetry\20251014092740050"
INFO: telemetry.process: Return from creating process 16172
INFO: telemetry.main: Finish creating telemetry upload process.

### Expected behavior

Ao executar o comando o arquivo br.zip deveria estar dentro do feed informado

### Environment Summary

azure-cli 2.70.0 *

core 2.70.0 *
telemetry 1.1.0

Extensions:
azure-devops 1.0.1

Dependencies:
msal 1.31.2b1
azure-mgmt-resource 23.1.1

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\ANDERSON.WALTER\.azure'
Extensions directory 'C:\Users\ANDERSON.WALTER\.azure\cliextensions'

Python (Windows) 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.