Azure storage deploy pipe is taking asterisk literally in source string

Haley Loyd January 15, 2025

 

We upgraded the Azure storage deploy pipe we've been using to 2.5.1 from 2.0.0 and now it is taking the asterisk in our source string literally. I want to find the file with any name that ends in .tgz but it is literally looking for "*.tgz"

The version number changes in the file name which is why I really don't want to hardcode it, but if there is no other way, I can put it in a bitbucket variable.

 - pipe: atlassian/azure-storage-deploy:2.5.1
               variables:

                 SOURCE: '*.tgz'

                 DESTINATION_STORAGE_ACCOUNT_NAME: 'https://astorageacct.blob.core.windows.net'

                 DESTINATION_SAS_TOKEN: '$NPM_PACKAGE_STORAGE_SAS_TOKEN'

                 DESTINATION_CONTAINER_NAME: 'npm'

                 DEBUG: 'true'

1 answer

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 17, 2025

Hi @Haley Loyd . Thanks for your question.

Unfortunately, your example will not work.

But you could try the next:
Put or save the files you want to upload into some folder `upload_folder`
and then try this example:

script:
  - pipe: atlassian/azure-storage-deploy:2.5.1
    variables:
      SOURCE: 'upload_folder/*'
      DESTINATION_STORAGE_ACCOUNT_NAME: 'https://mystorageaccount.blob.core.windows.net'
      DESTINATION_SAS_TOKEN: $AZURE_STORAGE_SAS_TOKEN
      DESTINATION_CONTAINER_NAME: 'my-container'

This will upload the files from `upload_folder` without the directory.
Waiting for your feedback.

Regards, Igor

Haley Loyd January 17, 2025

That is a great idea and much simpler than my backup plan! Thank you!

Like Igor Stoyanov likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events