tag:help.appveyor.com,2012-11-13:/discussions/questions/1140-is-it-possible-to-connect-to-bitbucket-repos-over-https-instead-of-sshAppVeyor: Discussion 2015-06-25T09:03:14Ztag:help.appveyor.com,2012-11-13:Comment/364264532015-03-30T23:28:28Z2015-03-30T23:28:28ZIs it possible to connect to BitBucket repos over HTTPS instead of SSH?<div><p>Hi Sebastian,</p>
<p>I think it's possible. You can add a new project and select
"Git" repository. Use https repo URL and credentials to
authenticate. Then you should manually configure <code>POST</code>
webhook for that BitBucket repo. Take webhook URL from General tab
of project settings and replace <code>git</code> with
<code>bitBucket</code>.</p>
<p>Let me know if you have any questions.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/364264532015-03-31T06:19:05Z2015-03-31T06:19:06ZIs it possible to connect to BitBucket repos over HTTPS instead of SSH?<div><p>Hi mate,</p>
<p>Not sure if this is related, but I blew away my old project for
the repo and created a new one using a vanilla 'Git' repo with
HTTPS credentials like you said. Seems to connect fine, but now
it's ignoring the AppVeyor.yml that's in the root of the repo.</p>
<p>Same repo, same commit and same appveyor.yml as the last project
- but it's trying to build and run tests from UI settings,
regardless of the steps being disabled in the appveyor.yml.</p>
<p>Again, a private repo so if you give me your email I can make
you a collaborator so you can check it out. <a href="https://ci.appveyor.com/project/Martaver/ibdm-fi">https://ci.appveyor.com/project/Martaver/ibdm-fi</a></p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/364264532015-03-31T10:34:40Z2015-03-31T10:34:41ZIs it possible to connect to BitBucket repos over HTTPS instead of SSH?<div><p>Just saw this issue here which is the same: <a href="http://help.appveyor.com/discussions/problems/1513-appveyoryml-is-ignored">
http://help.appveyor.com/discussions/problems/1513-appveyoryml-is-i...</a></p>
<p>Technical reasons aside, this seems like an odd limitation to
have. I'd like to have some consistency with the way that I use
AppVeyor and to me, the YML file is it. I don't really want to be
forced to switch between YML and UI based on what kind of git repo
I'm connecting to. Just my $0.02.</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/364264532015-03-31T12:15:55Z2015-03-31T12:15:55ZIs it possible to connect to BitBucket repos over HTTPS instead of SSH?<div><p>Yes, there is a limitation right now - using generic
Git/Mercurial/SVN provider ignores appveyor.yml. The problem there
is Git doesn't provide an easy/reliable way to download a single
file (appveyor.yml) from remote repo that must be done before the
entire repo is cloned on build worker.</p>
<p>You can leave SSH and try configuring a different remote in
"install" section to make GitVersion work.</p>
<p>-Feodor</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/364264532015-03-31T14:06:40Z2015-03-31T14:06:43ZIs it possible to connect to BitBucket repos over HTTPS instead of SSH?<div><p>Great suggestion!</p>
<p>Hopefully GitVersion will support SSH soon. Until then, this is
the solution for how to get GitVersion working for private
BitBucket repos:</p>
<p>The script I include is under the 'install' of my
appveyor.yml:</p>
<pre>
<code>install:
- git remote set-url origin https://bitbucket.org/myteam/myrepository.git</code>
</pre>
<p>Then ensure the <code>GITVERSION_REMOTE_USERNAME</code> and
<code>GITVERSION_REMOTE_PASSWORD</code> env variables are set in
either the appveyor.yml file or the appveyor project
configuration.</p>
<p><strong>Disclaimer</strong> It's worth noting that this requires
that the repo also support HTTPS... So basically, BitBucket, Stash,
GitHub etc. which all offer multiple endpoints for your repos are
sweet, but if you're stuck with a repo that can only do SSH then
this won't work for you.</p></div>sebastiantag:help.appveyor.com,2012-11-13:Comment/364264532015-03-31T14:11:51Z2015-03-31T14:11:51ZIs it possible to connect to BitBucket repos over HTTPS instead of SSH?<div><p>Great, thanks for sharing the solution!</p></div>Feodor Fitsner