Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Problem deploying to Azure storage

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

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

Thanks for helping with that!

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,914 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you