Replies: 2 comments
-
From a deeper look, the issue is caused by the command used to clone the branch: By cloning just the individual branch it appears that the other remotes are not visible. I confirmed this by doing a git clone in an ssh session from the build host using the set credentials. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This discussion is being closed due to no activity in the last 14 days. You can reopen the discussion at any time if needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently trialling Codemagic for one of our projects.
The project is written using Xamarin forms for iOS and Android. One of the software dependencies in the project is GitVersion which creates versions based on changes made in git. GitVersion needs to see the remote for develop or master, but the build host only appears to see the branch you are running the build from - "git fetch" and "git branch -r" show nothing when SSH'd into the build instance.
ERROR [03/02/23 17:12:55:76] An unexpected error occurred: System.InvalidOperationException: Could not find a 'develop' or 'master' branch, neither locally nor remotely. Error: One or more errors occurred. (GitVersion: Process returned an error (exit code 1).) GitVersion: Process returned an error (exit code 1).
When testing out new functionality we would not be running the pipeline from develop or master, but from a feature branch.
Is there a way to enable codemagic to see branches other than the current branch during the build process?
Beta Was this translation helpful? Give feedback.
All reactions