{"_id":"590a04f3ed80861900cbc75f","category":{"_id":"590a04f3ed80861900cbc73d","__v":0,"project":"55b2d5baa74a380d00e290c4","version":"590a04f2ed80861900cbc737","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-10-19T17:56:21.504Z","from_sync":false,"order":5,"slug":"setting-up-a-repository","title":"Setting Up a Repository"},"user":"55b2d5626862a10d00887af9","__v":0,"project":"55b2d5baa74a380d00e290c4","parentDoc":null,"version":{"_id":"590a04f2ed80861900cbc737","project":"55b2d5baa74a380d00e290c4","__v":4,"createdAt":"2017-05-03T16:27:30.085Z","releaseDate":"2017-05-03T16:27:30.085Z","categories":["590a04f3ed80861900cbc738","590a04f3ed80861900cbc739","590a04f3ed80861900cbc73a","590a04f3ed80861900cbc73b","590a04f3ed80861900cbc73c","590a04f3ed80861900cbc73d","590a04f3ed80861900cbc73e","590a04f3ed80861900cbc73f","590a04f3ed80861900cbc740","590a04f3ed80861900cbc741","590a04f3ed80861900cbc742","590a04f3ed80861900cbc743","590a04f3ed80861900cbc744","590a04f3ed80861900cbc745","590a04f3ed80861900cbc746","590a04f3ed80861900cbc747","590a04f3ed80861900cbc748","590a04f3ed80861900cbc749","590a04f3ed80861900cbc74a","590a04f3ed80861900cbc74b","590a04f3ed80861900cbc74c","590a04f3ed80861900cbc74d","59124949de13f61900336a7a","5914b04e7c2c552d008b7104","5914b47242c6a22300b9dc20"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"7.0.0","version":"7"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-19T17:43:52.144Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":9,"body":"If your repository lives in Visual Studio Online / Team Foundation Server (TFS), you can connect to it via SSH. \n\nBuddybuild currently requires you to create a personal access token in Visual Studio online, then provide us with a git url for your repo that includes this personal access token.\n\nIt should take about 5 minutes to get signed up. Let's get started!\n\n##Generating a personal access token\n\nHead over to dashboard, visit [Select source](https://dashboard.buddybuild.com/apps/wizard/build/select-source) and choose **SSH**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/4b9185d-First_Build_-_Select_Source_-_SSH.png\",\n        \"First Build - Select Source - SSH.png\",\n        1500,\n        800,\n        \"#d3d6d8\"\n      ]\n    }\n  ]\n}\n[/block]\nOnce you see this screen in buddybuild, head over to Visual Studio online. The url will look like: https://myteam.visualstudio.com.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/34a9487-VStudio_-_SSH_-_0.png\",\n        \"VStudio - SSH - 0.png\",\n        1500,\n        765,\n        \"#d1d5d7\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nGo into your personal profile (hover over your username in the top right, and select **My Profile**), select the **Security** Tab, and then add a **Personal Access Token.**\n\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/AiG7kL2UTr24XSDdphNl_Screen%20Shot%202016-01-19%20at%2011.02.47%20AM.png\",\n        \"Screen Shot 2016-01-19 at 11.02.47 AM.png\",\n        \"1232\",\n        \"717\",\n        \"#0d76c7\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nMake a note of the **personal access token** that is generated.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Find your repo url\"\n}\n[/block]\nGo to your project page and click the **Clone** button on the top right.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/ZPZEXsNTGMrsKPnLyF1A_Screen%20Shot%202016-01-19%20at%2011.09.31%20AM.png\",\n        \"Screen Shot 2016-01-19 at 11.09.31 AM.png\",\n        \"1230\",\n        \"399\",\n        \"#0b71b9\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n You will get an https url like this.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"https://buddybuild.visualstudio.com/DefaultCollection/_git/My%20First%20Project\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Combine the repo url and personal access token\"\n}\n[/block]\nThe final step in preparing your url is to add the personal access token into the repo url. Paste it into the repo url, so it looks like this, replacing MY_ACCESS_TOKEN with your personal access token and adding an :::at:::.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"https://MY_ACCESS_TOKEN@buddybuild.visualstudio.com/DefaultCollection/_git/My%20First%20Project\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Finishing sign up\"\n}\n[/block]\nBack on buddybuild, paste the https url into the git clone URL text box.\n\nYou can ignore the formatting suggestions, and also ignore the SSH key we offer. They don't apply to Visual Studio online hosted git repos.\n\nClick on the **Build** button.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/1853def-VStudio_-_SSH_-_3.png\",\n        \"VStudio - SSH - 3.png\",\n        1500,\n        765,\n        \"#384f5f\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nThat's it! You're done - we'll start building your repo and in a couple of minutes you'll have a working, modern CI, for your iOS or Android app.","excerpt":"","slug":"adding-a-visual-studio-online-repository","type":"basic","title":"Adding a Visual Studio Online Repository"}

Adding a Visual Studio Online Repository


If your repository lives in Visual Studio Online / Team Foundation Server (TFS), you can connect to it via SSH. Buddybuild currently requires you to create a personal access token in Visual Studio online, then provide us with a git url for your repo that includes this personal access token. It should take about 5 minutes to get signed up. Let's get started! ##Generating a personal access token Head over to dashboard, visit [Select source](https://dashboard.buddybuild.com/apps/wizard/build/select-source) and choose **SSH**. [block:image] { "images": [ { "image": [ "https://files.readme.io/4b9185d-First_Build_-_Select_Source_-_SSH.png", "First Build - Select Source - SSH.png", 1500, 800, "#d3d6d8" ] } ] } [/block] Once you see this screen in buddybuild, head over to Visual Studio online. The url will look like: https://myteam.visualstudio.com. [block:image] { "images": [ { "image": [ "https://files.readme.io/34a9487-VStudio_-_SSH_-_0.png", "VStudio - SSH - 0.png", 1500, 765, "#d1d5d7" ], "sizing": "full" } ] } [/block] Go into your personal profile (hover over your username in the top right, and select **My Profile**), select the **Security** Tab, and then add a **Personal Access Token.** [block:image] { "images": [ { "image": [ "https://files.readme.io/AiG7kL2UTr24XSDdphNl_Screen%20Shot%202016-01-19%20at%2011.02.47%20AM.png", "Screen Shot 2016-01-19 at 11.02.47 AM.png", "1232", "717", "#0d76c7", "" ] } ] } [/block] Make a note of the **personal access token** that is generated. [block:api-header] { "type": "basic", "title": "Find your repo url" } [/block] Go to your project page and click the **Clone** button on the top right. [block:image] { "images": [ { "image": [ "https://files.readme.io/ZPZEXsNTGMrsKPnLyF1A_Screen%20Shot%202016-01-19%20at%2011.09.31%20AM.png", "Screen Shot 2016-01-19 at 11.09.31 AM.png", "1230", "399", "#0b71b9", "" ] } ] } [/block] You will get an https url like this. [block:code] { "codes": [ { "code": "https://buddybuild.visualstudio.com/DefaultCollection/_git/My%20First%20Project", "language": "text" } ] } [/block] [block:api-header] { "type": "basic", "title": "Combine the repo url and personal access token" } [/block] The final step in preparing your url is to add the personal access token into the repo url. Paste it into the repo url, so it looks like this, replacing MY_ACCESS_TOKEN with your personal access token and adding an @. [block:code] { "codes": [ { "code": "https://MY_ACCESS_TOKEN@buddybuild.visualstudio.com/DefaultCollection/_git/My%20First%20Project", "language": "text" } ] } [/block] [block:api-header] { "type": "basic", "title": "Finishing sign up" } [/block] Back on buddybuild, paste the https url into the git clone URL text box. You can ignore the formatting suggestions, and also ignore the SSH key we offer. They don't apply to Visual Studio online hosted git repos. Click on the **Build** button. [block:image] { "images": [ { "image": [ "https://files.readme.io/1853def-VStudio_-_SSH_-_3.png", "VStudio - SSH - 3.png", 1500, 765, "#384f5f" ], "sizing": "full" } ] } [/block] That's it! You're done - we'll start building your repo and in a couple of minutes you'll have a working, modern CI, for your iOS or Android app.