Bitbucket

Bitbucket Pipelines: Deploy and Test

Applies to
Gatewayruntime for API, AI, and MCP gateways
Hosting
Managed EdgeManaged DedicatedSelf-HostedDiffers
1 difference by hosting option
Self-Hosted

Add --self-hosted-endpoint with your management API hostname to each zuplo deploy command so it targets your cluster. See zuplo deploy.

Run your test suite against the deployed environment to validate changes.

YAMLbitbucket-pipelines.yml
image: node:24 pipelines: default: - step: name: Deploy to Zuplo script: - npm install - npx zuplo deploy --api-key "$ZUPLO_API_KEY" 2>&1 | tee ./DEPLOYMENT_STDOUT - echo "DEPLOYMENT_URL=$(grep -oP 'Deployed to \K(https://[^ ]+)' ./DEPLOYMENT_STDOUT)" >> deployment.env artifacts: - deployment.env - step: name: Run Tests script: - source deployment.env - npm install - npx zuplo test --endpoint "$DEPLOYMENT_URL"

This pipeline:

  1. Deploys to Zuplo and captures the output
  2. Extracts the deployment URL and saves it as an artifact
  3. Runs tests against the deployed environment

Next Steps

Last modified on