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

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

after bitbucket pipeline push to Heroku, Heroku overrides it with it's own process

This is my config for the bitbucket pipeline for deploying to heroku 

image: node:7.8.0

pipelines:
  default:
    - step:
        script: # Modify the commands below to build your repository.
          - node -v
          - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.21.3
          - export PATH=$HOME/.yarn/bin:$PATH
          - yarn
          - git config --global push.default simple
          - git push -f https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git

I have node 7.8.0 here, but after the `git push -f...` command, heroku starts installing it's own node (version 6), so I fixed it by updating my package.json to specify the node version in the engines object.

My question, is what is the point of setting up the pipeline to node 7.8.0 and yarn and all that, when after I push to heroku, heroku installs node and yarn anyways on its own. 

Thank you.

 

1 answer

0 votes
Edwin Kato Community Leader Sep 19, 2019

The node version set in the pipeline is only used for the specific steps that are controlled (internally) within that pipeline such building or running tests. Heroku is an external environment that uses a different process to pick up on the node version to use. If you asked me, a connection could be made between Bitbucket and heroku to use that very image specified but that would be including an external dependency that would require Bitbucket to change something should Heroku change their process. But that's only my personal opinion

Suggest an answer

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

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

520 views 16 17
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