A utility to import the information from Bitbucket cloud to Elastic Search for analytics. Inspired on github-to-es.
Requires node 10 or superior, because it uses async iterators.
yarn global add bitbucket-to-elasticsearch
or
npm i -g bitbucket-to-elasticsearch
To configure, you can create a config.json file or use environment variables.
{
"bitbucket": {
"username": "my-username",
"clientId": "my-client-id",
"clientSecret": "my-client-secret"
},
"elasticsearch": {
"host": "127.0.0.1:9200"
}
}
BB2ES_BITBUCKET_USERNAMEBB2ES_BITBUCKET_CLIENT_IDBB2ES_BITBUCKET_CLIENT_SECRETBB2ES_BITBUCKET_CLIENT_SECRET
To get the full list of environment variables that can be set check src/config.js.
To run:
bitbucket-to-elasticsearch start | bunyan
bitbucket-to-elasticsearch reset | bunyan
The | bunyan part is optional. It's to get nicer console logging (instead of the default json logger). To use bunyan install it first using yarn global add bunyan.
MIT
2018 Devsu LLC. An agile software development shop.