This is my pipelines file (Redacted the blob account name):
image: node:10
pipelines:
branches:
master:
- step:
name: Deploy to Azure
deployment: production
caches:
- node
script:
- npm install
- npm run build
- pipe: microsoft/azure-storage-deploy:1.1.1
variables:
SOURCE: 'build'
DESTINATION: 'https://myblob.blob.core.windows.net/\$web'
DESTINATION_SAS_TOKEN: $SAS_TOKEN
This is the error I get:
Status: Downloaded newer image for mspipes/azure-storage-deploy:1.1.1
INFO: Starting deployment to Azure storage...
azcopy --quiet --source "build" --destination "https://myblob.blob.core.windows.net/$web" --recursive --dest-sas "$SAS_TOKEN"[2019/07/25 06:59:34][ERROR] /opt/atlassian/pipelines/agent/build/build/static/js/main.6ce3bb03.chunk.js: The transfer failed.
The requested URI does not represent any resource on the server.
The requested URI does not represent any resource on the server.
RequestId:f44c2cb6-c01e-0072-59b6-428a09000000
Time:2019-07-25T06:59:34.0814673Z
[2019/07/25 06:59:34][ERROR] /opt/atlassian/pipelines/agent/build/build/static/js/runtime~main.a8a9905a.js: The transfer failed.The requested URI does not represent any resource on the server.
The requested URI does not represent any resource on the server.
RequestId:15e5a776-b01e-0054-17b6-4211bd000000
Time:2019-07-25T06:59:34.0751369Z
[2019/07/25 06:59:34][ERROR] /opt/atlassian/pipelines/agent/build/build/static/js/2.65423c1e.chunk.js: The transfer failed.The requested URI does not represent any resource on the server.
The requested URI does not represent any resource on the server.
RequestId:db89310d-101e-0070-60b6-4288f3000000
Time:2019-07-25T06:59:34.0665324Z[2019/07/25 06:59:34][ERROR] /opt/atlassian/pipelines/agent/build/build/static/media/trolltunga.b85fa6d7.jpg: The transfer failed.
The requested URI does not represent any resource on the server.
The requested URI does not represent any resource on the server.
RequestId:2d8d9dbb-701e-0006-19b6-420c4f000000
Time:2019-07-25T06:59:34.0772614Z
[2019/07/25 06:59:34] Transfer summary:-----------------
Total files transferred: 10
Transfer successfully: 6
Transfer skipped: 0
Transfer failed: 4
Elapsed time: 00.00:00:02
And the deployment failed.
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.
Thank you! That solved my issue. I had to escape $web AND extracted the URL to a variable. Too bad that stuff is nowhere mentioned in the docs.
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.
Hello everyone, is this an official repository by Microsoft?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After, I discovered that the files are being uploaded to the $root container, not the $web.
Disregard this answer. It's a comment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Stuck with the same issue since couple of days.
How did you guys manage to resolve the above error?
I have even declared the variable in the repository variables in the Bitbucket, but landed with no luck.
My YML file exactly looks like @Rhuan Barreto file. Can anyone suggest how to get rid of this error?
CC : @Ørjan Solli
Thank you,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't quite remember, but I think you need to remove the DESTINATION from the YML file and put it in the repository variables or deployments as DESTINATION: 'https://myblob.blob.core.windows.net/\$web'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes @Ørjan Solli , it worked.
One more thing, we should also need to remove the SAS Token from the yml file and declare it in the repository variables only.
In the official documentation, it was not mentioned : https://bitbucket.org/microsoft/azure-storage-deploy/src/master/README.md
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.