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

Can't commit bitbucket-pipelines.yml, error message unhelpful Edited

It says "Your configuration looks good!" with the green checkmark and everything... but when I click "commit file" I get a little popup that says "Something went wrong" with a description that also says "Something went wrong." The console has a few warnings & errors:

(plain log): [Simple-XDM] Failed to validate origin: https://bitbucket.org

HEAD https://api.bitbucket.org/2.0/repositories/<user>/<repo>/src/master/bitbucket-pipelines.yml 404

(error): POST https://api.bitbucket.org/2.0/repositories/<user>/<repo>/src/ 500

 

Here's my script:

```

image: node:10.15.3

 

pipelines:

  branches:

    staging:

      - step:

          name: Build

          caches:

            - node

          artifacts:

            - build/**

          script:

            - npm install

            - npm run-script build

      - step:

          name: Deploy

          deployment: staging

          script:

            - firebase deploy --token=$FIREBASE_CICD_TOKEN --project $FIREBASE_STAGING_PROJECT_ID --non-interactive

```

 

I'll admit this is the first time I've tried setting up a deployment pipeline from scratch, so the issue could be very obvious... but since I get the green checkmark validating my script, it seems like it should at least be able to upload it (and run into problems once it runs) :\

 

My goal is simply to have it so whenever we make a PR into our staging branch, it will automatically build and deploy the project to our Firebase hosting so beta testers can try the upcoming versions of our site. I also have some environment variables set so the React app will be built with the correct API key and what not (i.e. process.env.REACT_APP_FIREBASE_PROJECT_ID) which works fine when I build locally and then deploy. 

1 answer

0 votes

Sorry, couldn't find anything on it before. Refined my Google search and found [this](https://community.atlassian.com/t5/Bitbucket-questions/Problem-with-Bitbucket-pipelines/qaq-p/794245) which seems to have solved my problem. 

 

Can't figure out how to delete this post now lol

Suggest an answer

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

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

379 views 0 1
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