Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-20350

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • Pipelines - Pipes
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            mabdrahim Syahrul
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: