Azure / Azure/azure-devops-cli-extension

'az pipelines variable update' fails on special characters (^, >)

Open
#1,096 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

## Describe the bug

`az pipelines variable update` has difficulties dealing with some special characters:

### works
```
$key="semver"
$value="~1.0.0"

az pipelines variable update --project $projectName --pipeline-name $pipelineName --name --value $key $value
```

### errors
```
$key="semver"
$value="^1.0.0" # caret (^) will be ignored in the UI frontend
$value=">=1.0.0" # error: (>) leads to an error

az pipelines variable update --project $projectName --pipeline-name $pipelineName --name --value $key $value
```

## Environment Summary
```
Windows-10-10.0.19041-SP0
Python 3.6.6
Installer: MSI

azure-cli 2.3.1

Extensions:
aks-preview 0.4.66
azure-devops 0.18.0
azure-iot 0.9.3
storage-preview 0.2.12

```

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.