Using $web string in Azure web storage pipe is not respected

XMLWordPrintable

    • 2
    • Severity 3 - Minor
    • 117

      Issue Summary

      Using $web string in Azure web storage pipe is not respected, the pipe ignores the $web due to internal script.

      Steps to Reproduce

      1. Create a $web URL from Azure web storage
      2. use the following pipe here
      3. Use $web path in the pipe and run the build

      Expected Results

      The build will fail on the last steps with error missing path because it's missing $web in the path

      Actual Results

      The build should look and use $web in all of its steps paths.

      The below exception is thrown in the xxxxxxx.log file:

      + echo '+++ azcopy cp '\''build/*'\'' '\''https://test.blob.core.windows.net/$AZURE_STORAGE_SAS_TOKEN'\'' --log-level=DEBUG --recursive
      INFO: Scanning...
      failed to perform copy command due to error: cannot transfer individual files/folders to the root of a service. Add a container or directory to the destination URL'
      + '[' 1 -eq 0 ']'
      + fail 'Deployment failed.'
      

      Workaround

      • Use Azure cli to copy files
      • A simple solution to process the variable in the pipe is using an escape character \ (backslash) infront of the container name $web. This will indicate that the $ character is a special character and it will not be processed as environment variable.
        DESTINATION_CONTAINER_NAME: '\$web'

            Assignee:
            Unassigned
            Reporter:
            Syahrul
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: