Special characters in Azure pipe variables are not processed correctly
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
When using the Azure storage deploy pipe, often the Azure container name has a leading $ in the name. For instance, the container name may be $web.
In that case, users often use the DESTINATION_CONTAINER_NAME as '$web' as shown below in the pipe
1
DESTINATION_CONTAINER_NAME: '$web'
However, when the same $web is used as the container name in the azure-storage-deploy pipe where the container name is a mandatory field, it does not take in account the $ character and considers the container name as web instead even when using single quotes around the container name and throws below error
1
ValueError: Please specify a container name.
Solution
A simple solution to process the variable in the pipe is using an escape character \ (backslash) in front of the container name $web. This will indicate that the $ character is special.
1
DESTINATION_CONTAINER_NAME: '\$web'
There is an existing bug ticket raised for this behaviour which can be tracked below:
BCLOUD-20350 - Using $web string in Azure web storage pipe is not respected
Was this helpful?