Problem deploying to Azure storage

FlipWallStreet
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 13, 2019

I am trying to build a react project and deploy to azure storage. I am getting an error when I add the last line:

 - pipe: mspipes/azure-storage-deploy:2.0.0
     variables:
         SOURCE: 'upload'
         DESTINATION: 'https://staticwebsiteflipadminqa.z19.web.core.windows.net/'
         DESTINATION_SAS_TOKEN: $AZURE_STORAGE_SAS_TOKEN
         DEBUG: 'true'

The error simply says "Your configuration is invalid"

Untitled 4.png

But... nothng is higlighted.

- Brian

Full Source:

image: node:10.15.3

pipelines:
default:
- step:
name: Build React Project
script:
- npm install
#- npm test
- npm run-script build
- mkdir packaged
- tar -czvf packaged/package-${BITBUCKET_BUILD_NUMBER}.tar.gz -C build .
artifacts:
- packaged/**
- step:
name: Deploy to Azure Storage Account
script:
- mkdir upload
- tar -xf packaged/package-${BITBUCKET_BUILD_NUMBER}.tar.gz -C upload
- pipe: mspipes/azure-storage-deploy:2.0.0
variables:
SOURCE: 'upload'
DESTINATION: 'https://staticwebsiteflipadminqa.z19.web.core.windows.net/'
DESTINATION_SAS_TOKEN: $AZURE_STORAGE_SAS_TOKEN
DEBUG: 'true'

1 answer

1 accepted

0 votes
Answer accepted
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 13, 2019

Hello @FlipWallStreet,

Thanks for reaching out and welcome to the Community!

The error is that little yellow dot in the gutter on line 21. And the reason for it is wrong indentation: variables should be at the same level as pipe, like this:

Untitled 5.png

- pipe: mspipes/azure-storage-deploy:2.0.0
  variables:
    SOURCE: 'upload'
    DESTINATION: 'https://staticwebsiteflipadminqa.z19.web.core.windows.net/'
    DESTINATION_SAS_TOKEN: $AZURE_STORAGE_SAS_TOKEN
    DEBUG: 'true'

Hope this helps. Let me know if you have any questions.

Cheers,
Daniil

FlipWallStreet
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 15, 2019

Thanks for helping with that!

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events