<-- Back

Mendix Pipelines fails with Error: Could not find remote branch

Issue

The Mendix Pipeline fails during the checkout step with the following error.

Project: project_name
Branch: Main line
Getting temporary access ... 
Cloning repository... 
Revision: null 
warning: Could not find remote branch Main line to clone. 
fatal: Remote branch Main line not found in upstream origin Skipping step because a previous step failed

Environment

  • Applications hosted in Mendix Cloud
  • Version Control

Cause

This error typically occurs when there is a mismatch between the branch name specified in the pipeline configuration and the actual branch names in the Git repository. It can also happen if the repository has recently migrated from SVN to Git, and the branch structure has changed.

Solution/Workaround

To resolve this issue, follow these steps:

  1. Verify that the branch name in the pipeline configuration matches exactly with the branch name in your Git repository.
  2. If the application has recently migrated from SVN to Git, ensure that the branch structure is correctly set up in Git.
  3. Create a new pipeline for the project:
    • Log in to the Mendix Portal 
    • Navigate to the project
    • Go to the Environments section
    • Click on Design a Pipeline
    • Configure the new pipeline with the correct branch name
  4. After creating the new pipeline, attempt to run it.

If the issue persists after creating a new pipeline, please contact Mendix Support for further assistance.

Internal information related

  • 259778 

Additional information

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.