azure-devops-cli-extension
azure-devops-cli-extension copied to clipboard
Uploading zip file to Azure Artifacts
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az artifacts universal publish Extension Name: azure-devops. Version: 0.18.0.
Errors:
[Errno 2] No such file or directory: '/home/adm_alhazem/.azure/azuredevops/cli/tools/artifacttool/ArtifactTool_linux-x64_0.2.172/artifacttool': '/home/adm_alhazem/.azure/azuredevops/cli/tools/artifacttool/ArtifactTool_linux-x64_0.2.172/artifacttool'
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 206, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 608, in execute
raise ex
...
FileNotFoundError: [Errno 2] No such file or directory: '/home/adm_alhazem/.azure/azuredevops/cli/tools/artifacttool/ArtifactTool_linux-x64_0.2.172/artifacttool': '/home/adm_alhazem/.azure/azuredevops/cli/tools/artifacttool/ArtifactTool_linux-x64_0.2.172/artifacttool'
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here...
az artifacts universal publish --organization {xxxxx.visualstudio.com} --feed {arcsight_functions} --name {arcsight-cloud-functions-7.14.0.zip} --version {7.14.0} --description {} --path {.}
Expected Behavior
the zip file is uploaded to Azure Artifacts
Environment Summary
Linux-4.4.0-17134-Microsoft-x86_64-with-debian-buster-sid
Python 3.6.5
azure-cli 2.2.0 *
Extensions:
azure-devops 0.18.0
interactive 0.4.3
Additional Context
Currently you can only upload files from a directory. So unpack the archive and publish it with:
az artifacts universal publish --organization {xxxxx.visualstudio.com} --feed {arcsight_functions} --name {arcsight-cloud-functions} --version {7.14.0} --description {} --path {arcsight-cloud-functions-7.14.0}
Note that I have also removed the version and extension from the --name, because this would otherwise create a new package for each uploaded version (and make --version obsolete).