Automatically Deploying CI Service Builds¶
With DXP Cloud, you can use webhooks to automatically trigger Jenkins builds for changes pushed or merged to your project’s Git repository (e.g., GitHub, Bitbucket, GitLab). These builds can then be manually deployed to project environments via the DXP Cloud Console. Alternatively, you can speed up the deployment process by configuring the CI service to automatically deploy successful builds from a specific branch to a specified environment.
By default, automatic deployment is controlled by the
LCP_CI_DEPLOY_TARGET variables. Together they determine which branch is used to trigger automatic deployments as well as the environment to which the builds are automatically deployed. Their default values are set to
If desired, you can configure automatic deployment by editing the
LCP_CI_DEPLOY_TARGET variables via the DXP Cloud Console:
Navigate to the
infraenvironment for your DXP Cloud Project.
Go to the CI service’s page, and click on the Environment Variables tab.
Add the following variables to the CI service:
Value: enter the desired branch name (e.g.,
Value: enter the desired environment name (e.g.,
Click on Save Changes. This causes the CI service to restart with the new variables.
Once restarted, any changes pushed or merged to your specified branch are automatically built and deployed to the target environment.