What should I do when encountering a missing build branch error?
Description
Build stage | Job | Error message | Category | Responsibility |
---|
Deploy | Create Acquia CDE | The build branch '<BRANCH_NAME>' is missing from Acquia Cloud Platform | Application | Customer |
Potential cause
This error occurs during merge requests if one of the following is true:
- The
ACQUIA_JOBS_CREATE_BRANCH_ARTIFACT
environment variable is not set to true
. The branch artifact must be created so that it can be pushed to Cloud Platform. - The source branch exists on a fork instead of the main repository.
Solution
- To create the branch artifact:
- Add the
ACQUIA_JOBS_CREATE_BRANCH_ARTIFACT
environment variable to your project. Set the value of ACQUIA_JOBS_CREATE_BRANCH_ARTIFACT
to true
.
For more information, see Adding environment variables.
- If the source branch does not exist in the main repository:
- Push the source branch to the main Code Studio project repository.
- Create the merge request without using a forked repository.
Before you create a merge request using the target branch:
- Ensure that the target branch successfully passes a Code Studio pipeline.
- Deploy the target branch to Cloud Platform.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.