{"_id":"590a04f3ed80861900cbc758","parentDoc":null,"__v":0,"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"},"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"},"project":"55b2d5baa74a380d00e290c4","user":"55b2d5626862a10d00887af9","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-03-15T16:53:29.668Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"If your repository lives in Beanstalk, you can connect to it via SSH. Buddybuild will automatically generate a secure SSH key for you to install into your source control system. Buddybuild will use this key to clone your repository.\n\nLet's get started!\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Quick Links\",\n  \"body\": \"<a href=\\\"http://docs.buddybuild.com/docs/adding-a-beanstalk-repository#section-step-1-enter-the-ssh-git-clone-url\\\">Step 1: Enter the SSH Git Clone URL</a>\\n<a href=\\\"http://docs.buddybuild.com/docs/adding-a-beanstalk-repository#section-step-2-add-the-ssh-key-to-your-beanstalk-account\\\">Step 2: Add the SSH Key to Your Beanstalk Account</a>\"\n}\n[/block]\n## Step 1: Enter the SSH Git Clone URL\n\nWithin the main page of your repository, look to the right of the page for the SSH URL. Click on the **SSH** button (if it is not already selected). Highlight and copy the **SSH URL**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/taVe7LfQfugExJGyqlJs_beanstalk-copy-clone-url.png\",\n        \"beanstalk-copy-clone-url.png\",\n        \"967\",\n        \"272\",\n        \"#8e614a\",\n        \"\"\n      ],\n      \"sizing\": \"original\"\n    }\n  ]\n}\n[/block]\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/9f9c53e-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]\nPaste the SSH URL you copied into the **Git clone URL** field.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/b30440f-Beanstalk_-_SSH_-_1.png\",\n        \"Beanstalk - SSH - 1.png\",\n        1500,\n        765,\n        \"#384f5f\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\n## Step 2: Add the SSH Key to Your Beanstalk Account\n\nHighlight and copy the buddybuild SSH key.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/d4a92dd-Beanstalk_-_SSH_-_2.png\",\n        \"Beanstalk - SSH - 2.png\",\n        1500,\n        765,\n        \"#556777\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nNavigate to your Beanstalk settings by selecting your **name** in the top right navigation. Then, select **SSH Keys**. Next, select the **Add public key** button.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/3ftWiNYkST2LcFZeSuK8_beanstalk-nav-to-ssh-keys.png\",\n        \"beanstalk-nav-to-ssh-keys.png\",\n        \"1278\",\n        \"243\",\n        \"#b19749\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nPaste the copied SSH key into the **Public SSH key** field and enter **buddybuild** as the **Label**. Next, click **Add Key.**\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/XEGua36TIWePryjSw2nA_beanstalk-add-key.png\",\n        \"beanstalk-add-key.png\",\n        \"1042\",\n        \"661\",\n        \"#8f5333\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"body\": \"If your project depends on any code in other private git repos, the ssh key will need to be added to those repos as well.\",\n  \"title\": \"Private git submodules and private cocoapods\"\n}\n[/block]\nNavigate back to buddybuild and click on the **Build** button.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/1d01633-Beanstalk_-_SSH_-_3.png\",\n        \"Beanstalk - SSH - 3.png\",\n        1500,\n        765,\n        \"#556777\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nBuddybuild will checkout your project code and kick off a simulator build. The build should finish within a few seconds.\n\nThat's it. You're now connected to buddybuild. The next step is to [invite testers](doc:inviting-testers) to try out your App.","excerpt":"","slug":"adding-a-beanstalk-repository","type":"basic","title":"Adding a Beanstalk Repository"}

Adding a Beanstalk Repository


If your repository lives in Beanstalk, you can connect to it via SSH. Buddybuild will automatically generate a secure SSH key for you to install into your source control system. Buddybuild will use this key to clone your repository. Let's get started! [block:callout] { "type": "info", "title": "Quick Links", "body": "<a href=\"http://docs.buddybuild.com/docs/adding-a-beanstalk-repository#section-step-1-enter-the-ssh-git-clone-url\">Step 1: Enter the SSH Git Clone URL</a>\n<a href=\"http://docs.buddybuild.com/docs/adding-a-beanstalk-repository#section-step-2-add-the-ssh-key-to-your-beanstalk-account\">Step 2: Add the SSH Key to Your Beanstalk Account</a>" } [/block] ## Step 1: Enter the SSH Git Clone URL Within the main page of your repository, look to the right of the page for the SSH URL. Click on the **SSH** button (if it is not already selected). Highlight and copy the **SSH URL**. [block:image] { "images": [ { "image": [ "https://files.readme.io/taVe7LfQfugExJGyqlJs_beanstalk-copy-clone-url.png", "beanstalk-copy-clone-url.png", "967", "272", "#8e614a", "" ], "sizing": "original" } ] } [/block] 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/9f9c53e-First_Build_-_Select_Source_-_SSH.png", "First Build - Select Source - SSH.png", 1500, 800, "#d3d6d8" ] } ] } [/block] Paste the SSH URL you copied into the **Git clone URL** field. [block:image] { "images": [ { "image": [ "https://files.readme.io/b30440f-Beanstalk_-_SSH_-_1.png", "Beanstalk - SSH - 1.png", 1500, 765, "#384f5f" ], "sizing": "full" } ] } [/block] ## Step 2: Add the SSH Key to Your Beanstalk Account Highlight and copy the buddybuild SSH key. [block:image] { "images": [ { "image": [ "https://files.readme.io/d4a92dd-Beanstalk_-_SSH_-_2.png", "Beanstalk - SSH - 2.png", 1500, 765, "#556777" ], "sizing": "full" } ] } [/block] Navigate to your Beanstalk settings by selecting your **name** in the top right navigation. Then, select **SSH Keys**. Next, select the **Add public key** button. [block:image] { "images": [ { "image": [ "https://files.readme.io/3ftWiNYkST2LcFZeSuK8_beanstalk-nav-to-ssh-keys.png", "beanstalk-nav-to-ssh-keys.png", "1278", "243", "#b19749", "" ], "sizing": "full" } ] } [/block] Paste the copied SSH key into the **Public SSH key** field and enter **buddybuild** as the **Label**. Next, click **Add Key.** [block:image] { "images": [ { "image": [ "https://files.readme.io/XEGua36TIWePryjSw2nA_beanstalk-add-key.png", "beanstalk-add-key.png", "1042", "661", "#8f5333", "" ], "sizing": "full" } ] } [/block] [block:callout] { "type": "warning", "body": "If your project depends on any code in other private git repos, the ssh key will need to be added to those repos as well.", "title": "Private git submodules and private cocoapods" } [/block] Navigate back to buddybuild and click on the **Build** button. [block:image] { "images": [ { "image": [ "https://files.readme.io/1d01633-Beanstalk_-_SSH_-_3.png", "Beanstalk - SSH - 3.png", 1500, 765, "#556777" ], "sizing": "full" } ] } [/block] Buddybuild will checkout your project code and kick off a simulator build. The build should finish within a few seconds. That's it. You're now connected to buddybuild. The next step is to [invite testers](doc:inviting-testers) to try out your App.