Skip to content

Erro no upload de artefatos universais #32256

@Walterbr80

Description

@Walterbr80

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 [<function AzCliLogging.deinit_cmd_metadata_logging at 0x000001EF2EAE22A0>]
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Artifactsaz artifactsAuto-AssignAuto assign by botAuto-ResolveAuto resolve by botService AttentionThis issue is responsible by Azure service team.act-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions