Having trouble seeing 2nd Project in VS Online

rajindersingh's Avatar

rajindersingh

23 Feb, 2015 02:44 AM

I have access to VS Online. I have a project in appveyor pointing to this project. Everything is working as expected.
My client added another project in the same VS online account and gave me access to it. However I am unable to see this project.
I don't get any errors but I have not been able to figure out how to see this new project and create a new appveyor project from it

  1. Support Staff 1 Posted by Feodor Fitsner on 23 Feb, 2015 03:09 AM

    Feodor Fitsner's Avatar

    Is it Git or TFVC repo?

    First of all, try to re-authorize VSO in AppVeyor. Go to https://ci.appveyor.com/account and revoke VSO access. Then go back to "New project" page and authorize VSO again.

  2. 2 Posted by rajindersingh on 23 Feb, 2015 03:27 AM

    rajindersingh's Avatar

    worked for me.

    thanks

  3. Support Staff 3 Posted by Feodor Fitsner on 23 Feb, 2015 03:31 AM

    Feodor Fitsner's Avatar

    Cool, thanks for the update!

  4. 4 Posted by rajindersingh on 23 Feb, 2015 04:46 PM

    rajindersingh's Avatar

    Now that I can see the 2nd project I tried adding it to Appveyor. I am getting this error:

    Error adding webhook to VSO repository: Forbidden

    what type of access do I need on VSO to be able to add webhook?
    My client swears that he has give me the same access on both of my projects.

  5. rajindersingh closed this discussion on 23 Feb, 2015 04:46 PM.

  6. Feodor Fitsner re-opened this discussion on 23 Feb, 2015 04:49 PM

  7. Support Staff 5 Posted by Feodor Fitsner on 23 Feb, 2015 04:49 PM

    Feodor Fitsner's Avatar

    Have you been able to add it?

    -Feodor

  8. 6 Posted by rajindersingh on 23 Feb, 2015 05:13 PM

    rajindersingh's Avatar

    When I add it I get this error

    Error adding webhook to VSO repository: Forbidden

    and add fails.

  9. Support Staff 7 Posted by Feodor Fitsner on 23 Feb, 2015 05:17 PM

    Feodor Fitsner's Avatar

    Is it Git or TFVC repo?

  10. 8 Posted by rajindersingh on 23 Feb, 2015 05:43 PM

    rajindersingh's Avatar

    TFVC

  11. Support Staff 9 Posted by Feodor Fitsner on 23 Feb, 2015 06:00 PM

    Feodor Fitsner's Avatar

    OK, if you are absolutely sure permissions on both projects are equal you can try adding webhook using VSO REST API and your credentials.

    You can use "alternative credentials" and Basic authentication: http://www.visualstudio.com/integrate/get-started/auth/overview

    AppVeyor uses the following calls to add webhook to TFVC repository:

    1st request - get project ID:

    GET https://{account-name}.visualstudio.com/DefaultCollection/_apis/projects/{project-name}
    

    Project ID is a guid in response.

    2nd request - add hook subscription:

    POST https://{account-name}.visualstudio.com/DefaultCollection/_apis/hooks/subscriptions?api-version=1.0-preview.1
    

    Body:

    {
        "consumerActionId" = "httpRequest",
        "consumerId" = "webHooks",
        "consumerInputs" = {
            "url" = "{webhook url}"
        },
        "eventType" = "tfvc.checkin",
        "publisherId" = "tfs",
        "publisherInputs": {
            "path": "$/your-tfs/project",
            "projectId": "{projectId}"
        }
    }
    
  12. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac