-
Notifications
You must be signed in to change notification settings - Fork 655
Investigating continuous deployment
This is a guide to help investigate why the continuous deployment from GitHub or Bitbucket not working.
This post describes what you need to do to make sure that Azure can see repos in the relevant organizations.
You need to be an admin on the repositories. To check if you are an admin of the repo, ...
- For github, see if you can browse to https://github.com/{account}/{repo}/settings/hooks.
- For bitbucket, see if you can browse to https://bitbucket.org/{account}/{repo}/admin/hooks.
Github has recently required an explicit authorization for OAuth application to access the org repositories. To grant the authorization, ...
- Browse to https://github.com/settings/applications
- Click
Azure Management Portal
. For old Portal, clickWindows Azure
. - Click
Grant access
to the specific organization
Follow the "Get git service log" step in Investigating issues. Once you have a zipped logfile, look for Git\trace\trace.xml. This should contain all the incoming/outgoing request logs. See if we have received any POST /deploy request from GitHub or Bitbucket (notification of repo push) or any issues. You may share us that trace.xml and we can help investigate.
If you can't find any related requests in trace.xml, we may have trouble receiving anything from GitHub or Bitbucket in the first place. Look at your service hook settings in GitHub or Bitbucket. For instance, in Bitbucket, it is under Services section of your repo settings. See if the azure service url (https://...scm.../deploy) is registered.
If there is, try POST simple payload to that URL. The payload need to just contain repo url info such as {"url":"https://.../myrepo"}; in case of SSH, {"url":"git@...:user/myrepo"}. You may also pass is_hg:true if your repo is mercurial. Check if there is a deployment to your site.
Create a http request bin at http://requestb.in/ and add it as one of Services of your repo setting. Push to your repo and see if there exist any POST requests. If not, then contact GitHub or Bitbucket.
Here is the Bitbucket status page: http://status.bitbucket.org/