Bitbucket
Getting Started with Bitbucket
https://docs.google.com/document/d/1QUKtKYSifGvzLpBnvo6NVkWJw2l2-OSXgShk57aIVpY/edit
Bitbucket Pipelines
Template NodeJS build
This template allows you to validate your NodeJS code.
The workflow allows running tests and code linting on the default branch.
image: node:10.15.3
pipelines:
default:
- parallel:
- step:
name: Build and Test
caches:
- node
script:
- npm install
- npm test
- step:
name: Code linting
script:
- npm install eslint
- npx eslint .
caches:
- node
- pipe: atlassian/firebase-deploy:0.6.0
variables:
FIREBASE_TOKEN: ‘‘ PROJECT_ID: ‘
‘ # Optional. MESSAGE: ‘
‘ # Optional. EXTRA_ARGS: ‘
‘ # Optional. DEBUG: ‘
‘ # Optional.
script:
- pipe: atlassian/firebase-deploy:0.6.0
variables:
KEY_FILE: $KEY_FILE
PROJECT_ID: ‘myAwesomeProject’
MESSAGE: ‘Deploying myAwesomeProject’
EXTRA_ARGS: ‘–only functions’
DEBUG: ‘true’
References
https://www.visualstudio.com/team-services/pricing/
https://blogs.msdn.microsoft.com/dmx/2016/10/13/integrating-vsts-with-bitbucket/
https://zapier.com/apps/bitbucket/integrations/visual-studio-online
https://marketplace.visualstudio.com/items?itemName=ms-vscs-rm.vss-services-bitbucket
https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/