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'
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
That is a great idea and much simpler than my backup plan! Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.