avoid global pattern in pipeline's azure cli integration

Chris Huang January 13, 2022

I use azure CLI pipe in pipeline, i wanna run the cli command:

az cdn endpoint purge -g $rg --profile-name $profileName -n $name --content-paths '/*'

but * is global pattern and it will be always compiled to 123.png

based on this doc https://support.atlassian.com/bitbucket-cloud/docs/use-glob-patterns-on-the-pipelines-yaml-file/, i try /'*',  the result looks good:

123.png

but when i use it in the azure CLI pipe, it shows error:

123.png

i can run the CLI locally no problems at all:

123.png

any ideas? 

cheers

1 answer

0 votes
Naveen Kumar_Appfire
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 16, 2022

Hi @Chris Huang

Thanks for reaching out to us through community questions!

We have raised a supports ticket on your behalf  https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-9269. In order to help you in the better way possible, we will need some more details

  • Are you on server or cloud?
  • What’s the CLI version you’re using?
  • What’s the platform version you’re using?
  • Can you include some screenshots of the error you’re seeing?
  • Please share the command you’ve run.
  • Please share the screenshot of the error you are getting when running your command by adding the --debug parameter in the end for us to further analyze.

We are looking forward to your answers.

Thanks,
Naveen

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events