Deployment from BitBucket

I see here, that it is very to automate deployment to the xdn from Github and Jenkins.

How do I automate deployment from BitBucket?

We don’t have specific examples for BitBucket and GitLab yet, but the basic process using any CI pipeline is simply:

  • get the branch name, normally from some environment variable provided by the CI environment
  • run xdn deploy <team name> --environment=<environment name> --branch=<branch name>.

In most cases you’ll compute the environment name from the branch based on your development workflow. For example, the master or main branch is deployed to the production environment. The staging branch is deployed to the staging environment. All other branches are deployed without the --environment option, meaning they go to the default environment.

1 Like