Azure / Azure/azure-cli-extensions

"az pipelines runs artifact list" fails on any --project input

Open
#3,790 2 comments 0 reactions 0 assignees View on GitHub
DevOps Pipelines Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### **This is autogenerated. Please review and update as needed.**

## Describe the bug

**Command Name**
`az pipelines runs artifact list
Extension Name: azure-devops. Version: 0.8.0.`

**Errors:**
```
build_id must be type int.
Traceback (most recent call last):
pip-install-dsvrkf2x\msrest\msrest\serialization.py, ln 694, in serialize_data
pip-install-dsvrkf2x\msrest\msrest\serialization.py, ln 740, in serialize_basic
ValueError: invalid literal for int() with base 10: 'REDACTED_GUID'

...

route_values['buildId'] = self._serialize.url('build_id', build_id, 'int')
pip-install-dsvrkf2x\msrest\msrest\serialization.py, ln 603, in url
TypeError: build_id must be type int.
```

## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

- `az pipelines runs artifact list --run-id 45747888 --organization "https://REDACTED.visualstudio.com"`
- Results in "--project must be specified. The value should be the ID or name of a team project. You can set a default value by running: az devops configure --defaults project=."
- Adding --project like this results in an error though:
- `az pipelines runs artifact list --run-id 45747888 --organization "https://REDACTED.visualstudio.com" --project "REDACTED_GUID"`
- I get the same if I use the project name. I can't find any representation of a project that could be represented as an int, looking at my project via `az devops project show --organization "https://REDACTED.visualstudio.com" --project "PROJECT_NAME"` does only give me the name and a guid but no int that the artifact command would accept.
## Expected Behavior
I would expect that the `az pipelines runs artifact list` command accepts the same syntax for `--project` as `az devops project show` does.

## Environment Summary
```
Windows-10-10.0.19041-SP0
Python 3.6.6
Shell: cmd.exe

azure-cli 2.0.65

Extensions:
azure-devops 0.8.0

```
## Additional Context

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.