Bitbucket Pipelines
Overview
Prerequisites
Quick Setup
1
Variable
Value
Options
2
image: node:20
pipelines:
pull-requests:
'**':
- step:
name: Tabnine Code Review
script:
- export TABNINE_HOST="${TABNINE_HOST:-https://console.tabnine.com}"
- export TABNINE_MODEL_ID="${TABNINE_MODEL_ID:-}"
# Input validation
- |
if [ -z "$TABNINE_KEY" ]; then
echo "Error: TABNINE_KEY not set"
exit 1
fi
if [ -z "$BB_API_TOKEN" ]; then
echo "Error: BB_API_TOKEN not set"
exit 1
fi
# Install dependencies
- apt-get update -qq && apt-get install -y -qq curl git jq > /dev/null 2>&1
# Install Tabnine CLI
- |
curl -fsSL "$TABNINE_HOST/update/cli/installer.mjs" -o installer.mjs
node installer.mjs "$TABNINE_HOST"
# Configure and run review
# ... (see full configuration link below)3
Configuration
Required Repository Variables
Variable
Description
Optional Repository Variables
Variable
Default
Description
Bitbucket Access Token
1
2
3
How It Works
1
2
3
4
5
6
Important Notes
Customization
Reviewing Only Specific Branches
Using a Specific Model
Self-Hosted / Private Installations
Troubleshooting
See Also
Last updated
Was this helpful?
