Using non-GitHub Repos with PhoneGap Build
PhoneGap Build already has integration with GitHub, but we host our private work repos on BeanStalk, so that does not help very much.
After some brief searching and contacting BeanStalk support, I figured out how to add my repo to PhoneGap Build.
The basic url structure is this: https://[username]:[password]@[host].[com|org|net|etc]/[reponame].git
Note: Make sure you url encode your password if it uses special characters, and also make sure you don't share this URL with anyone who you wouldn't want to know your password.
Note: Any PhoneGap Build collaborators will be able to see the URL with your password plainly visible.
Here are some exampes:
- BeanStalk:
https://[username]:[password]@[account].git.beanstalkapp.com/[reponame].git
- Bitbucket:
https://[username]:[password]@bitbucket.org/[reponame].git
-
[username]
is your username for that host -
[password]
is your password for that host -
[reponame]
is the name of your git repository -
[account]
is your BeanStalk account name:https://[account].beanstalkapp.com/
More info: PhoneGap Build and BeanStalk git Repositories
Inspired by: Using Private Bitbucket Repositories With PhoneGap Build
Written by Eric Allen
Related protips
1 Response
I can't seem to get this to work, can you test if you can still use this method?
<3
Twitter @jgm_io