{"action":"created","comment":{"url":"https://api.github.com/repos/drone/docs/pulls/comments/60486816","id":60486816,"diff_hunk":"@@ -0,0 +1,80 @@\n++++\n+date = \"2016-04-20T16:00:21-08:00\"\n+draft = false\n+title = \"Bitbucket Server(Stash)\"\n+weight = 1\n+menu = \"remotes\"\n+toc = true\n++++\n+\n+Drone comes with built-in support for Bitbucket Server(stash) To enable Bitbucket Server you should configure the Bitbucket driver using the following environment variables:\n+\n+```bash\n+REMOTE_DRIVER=bitbucketserver\n+REMOTE_CONFIG=https://{servername}?consumer_key={consumer_key}&git_username={git_username}&git_password={git_password}&consumer_rsa={path_private_key}&open={unused}\n+```\n+\n+# Bitbucket Server configuration\n+\n+The following is the standard URI connection scheme:\n+\n+```\n+scheme://host[?options]\n+```\n+\n+The components of this string are:\n+\n+* `scheme` server protocol `http` or `https`.\n+* `host` server address to connect to.\n+* `?options` connection specific options.\n+\n+# Bitbucket Server options\n+\n+This section lists all connection options used in the connection string format. Connection options are pairs in the following form: `name=value`. The value is always case sensitive. Separate options with the ampersand (i.e. &) character:\n+\n+* `consumer_key` oauth client id for registered application (must add in application links incoming auth in Bitbucket server).\n+* `git_username` Service account that can http clone the projects.\n+* `git_password` password for the service account that can http clone the projects.\n+* `consumer_rsa` Path to the private key for oauth1 (will need to copy into a customer docker image or map the volume to the correct location).\n+* `open=false` not currently used but will be added later","path":"content/setup/remotes/bitbucketserver.md","position":39,"original_position":39,"commit_id":"c6624b2d5c28e3f9961cfb67303e9766541440f0","original_commit_id":"c6624b2d5c28e3f9961cfb67303e9766541440f0","user":{"login":"bradrydzewski","id":817538,"avatar_url":"https://avatars.githubusercontent.com/u/817538?v=3","gravatar_id":"","url":"https://api.github.com/users/bradrydzewski","html_url":"https://github.com/bradrydzewski","followers_url":"https://api.github.com/users/bradrydzewski/followers","following_url":"https://api.github.com/users/bradrydzewski/following{/other_user}","gists_url":"https://api.github.com/users/bradrydzewski/gists{/gist_id}","starred_url":"https://api.github.com/users/bradrydzewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradrydzewski/subscriptions","organizations_url":"https://api.github.com/users/bradrydzewski/orgs","repos_url":"https://api.github.com/users/bradrydzewski/repos","events_url":"https://api.github.com/users/bradrydzewski/events{/privacy}","received_events_url":"https://api.github.com/users/bradrydzewski/received_events","type":"User","site_admin":false},"body":"can we change from:\r\n\r\n```\r\nwill need to copy into a customer docker image or map the volume to the correct location\r\n```\r\n\r\nto \r\n\r\n```\r\nmust mount the private key file into the container using volumes\r\n``","created_at":"2016-04-20T21:01:12Z","updated_at":"2016-04-20T21:01:12Z","html_url":"https://github.com/drone/docs/pull/129#discussion_r60486816","pull_request_url":"https://api.github.com/repos/drone/docs/pulls/129","_links":{"self":{"href":"https://api.github.com/repos/drone/docs/pulls/comments/60486816"},"html":{"href":"https://github.com/drone/docs/pull/129#discussion_r60486816"},"pull_request":{"href":"https://api.github.com/repos/drone/docs/pulls/129"}}},"pull_request":{"url":"https://api.github.com/repos/drone/docs/pulls/129","id":67239165,"html_url":"https://github.com/drone/docs/pull/129","diff_url":"https://github.com/drone/docs/pull/129.diff","patch_url":"https://github.com/drone/docs/pull/129.patch","issue_url":"https://api.github.com/repos/drone/docs/issues/129","number":129,"state":"open","locked":false,"title":"Documentation update to help with the setup of bitbucket server","user":{"login":"josmo","id":387992,"avatar_url":"https://avatars.githubusercontent.com/u/387992?v=3","gravatar_id":"","url":"https://api.github.com/users/josmo","html_url":"https://github.com/josmo","followers_url":"https://api.github.com/users/josmo/followers","following_url":"https://api.github.com/users/josmo/following{/other_user}","gists_url":"https://api.github.com/users/josmo/gists{/gist_id}","starred_url":"https://api.github.com/users/josmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josmo/subscriptions","organizations_url":"https://api.github.com/users/josmo/orgs","repos_url":"https://api.github.com/users/josmo/repos","events_url":"https://api.github.com/users/josmo/events{/privacy}","received_events_url":"https://api.github.com/users/josmo/received_events","type":"User","site_admin":false},"body":"Document updates to include bitbucket server config","created_at":"2016-04-20T18:52:44Z","updated_at":"2016-04-20T21:01:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4578aaff84b92ce8b5986f28d2f7ef1dc9ee8ce3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/drone/docs/pulls/129/commits","review_comments_url":"https://api.github.com/repos/drone/docs/pulls/129/comments","review_comment_url":"https://api.github.com/repos/drone/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/drone/docs/issues/129/comments","statuses_url":"https://api.github.com/repos/drone/docs/statuses/c6624b2d5c28e3f9961cfb67303e9766541440f0","head":{"label":"josmo:bitbucketserver","ref":"bitbucketserver","sha":"c6624b2d5c28e3f9961cfb67303e9766541440f0","user":{"login":"josmo","id":387992,"avatar_url":"https://avatars.githubusercontent.com/u/387992?v=3","gravatar_id":"","url":"https://api.github.com/users/josmo","html_url":"https://github.com/josmo","followers_url":"https://api.github.com/users/josmo/followers","following_url":"https://api.github.com/users/josmo/following{/other_user}","gists_url":"https://api.github.com/users/josmo/gists{/gist_id}","starred_url":"https://api.github.com/users/josmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josmo/subscriptions","organizations_url":"https://api.github.com/users/josmo/orgs","repos_url":"https://api.github.com/users/josmo/repos","events_url":"https://api.github.com/users/josmo/events{/privacy}","received_events_url":"https://api.github.com/users/josmo/received_events","type":"User","site_admin":false},"repo":{"id":56710202,"name":"docs","full_name":"josmo/docs","owner":{"login":"josmo","id":387992,"avatar_url":"https://avatars.githubusercontent.com/u/387992?v=3","gravatar_id":"","url":"https://api.github.com/users/josmo","html_url":"https://github.com/josmo","followers_url":"https://api.github.com/users/josmo/followers","following_url":"https://api.github.com/users/josmo/following{/other_user}","gists_url":"https://api.github.com/users/josmo/gists{/gist_id}","starred_url":"https://api.github.com/users/josmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josmo/subscriptions","organizations_url":"https://api.github.com/users/josmo/orgs","repos_url":"https://api.github.com/users/josmo/repos","events_url":"https://api.github.com/users/josmo/events{/privacy}","received_events_url":"https://api.github.com/users/josmo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/josmo/docs","description":"documentation for the Drone Continuous Integration project","fork":true,"url":"https://api.github.com/repos/josmo/docs","forks_url":"https://api.github.com/repos/josmo/docs/forks","keys_url":"https://api.github.com/repos/josmo/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/josmo/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/josmo/docs/teams","hooks_url":"https://api.github.com/repos/josmo/docs/hooks","issue_events_url":"https://api.github.com/repos/josmo/docs/issues/events{/number}","events_url":"https://api.github.com/repos/josmo/docs/events","assignees_url":"https://api.github.com/repos/josmo/docs/assignees{/user}","branches_url":"https://api.github.com/repos/josmo/docs/branches{/branch}","tags_url":"https://api.github.com/repos/josmo/docs/tags","blobs_url":"https://api.github.com/repos/josmo/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/josmo/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/josmo/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/josmo/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/josmo/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/josmo/docs/languages","stargazers_url":"https://api.github.com/repos/josmo/docs/stargazers","contributors_url":"https://api.github.com/repos/josmo/docs/contributors","subscribers_url":"https://api.github.com/repos/josmo/docs/subscribers","subscription_url":"https://api.github.com/repos/josmo/docs/subscription","commits_url":"https://api.github.com/repos/josmo/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/josmo/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/josmo/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/josmo/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/josmo/docs/contents/{+path}","compare_url":"https://api.github.com/repos/josmo/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/josmo/docs/merges","archive_url":"https://api.github.com/repos/josmo/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/josmo/docs/downloads","issues_url":"https://api.github.com/repos/josmo/docs/issues{/number}","pulls_url":"https://api.github.com/repos/josmo/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/josmo/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/josmo/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/josmo/docs/labels{/name}","releases_url":"https://api.github.com/repos/josmo/docs/releases{/id}","deployments_url":"https://api.github.com/repos/josmo/docs/deployments","created_at":"2016-04-20T18:19:25Z","updated_at":"2016-04-20T18:19:26Z","pushed_at":"2016-04-20T20:04:09Z","git_url":"git://github.com/josmo/docs.git","ssh_url":"git@github.com:josmo/docs.git","clone_url":"https://github.com/josmo/docs.git","svn_url":"https://github.com/josmo/docs","homepage":null,"size":1091,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"drone:master","ref":"master","sha":"9ff5c76467b9773b5bd71859a6c451ed22314115","user":{"login":"drone","id":2181346,"avatar_url":"https://avatars.githubusercontent.com/u/2181346?v=3","gravatar_id":"","url":"https://api.github.com/users/drone","html_url":"https://github.com/drone","followers_url":"https://api.github.com/users/drone/followers","following_url":"https://api.github.com/users/drone/following{/other_user}","gists_url":"https://api.github.com/users/drone/gists{/gist_id}","starred_url":"https://api.github.com/users/drone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drone/subscriptions","organizations_url":"https://api.github.com/users/drone/orgs","repos_url":"https://api.github.com/users/drone/repos","events_url":"https://api.github.com/users/drone/events{/privacy}","received_events_url":"https://api.github.com/users/drone/received_events","type":"Organization","site_admin":false},"repo":{"id":16606316,"name":"docs","full_name":"drone/docs","owner":{"login":"drone","id":2181346,"avatar_url":"https://avatars.githubusercontent.com/u/2181346?v=3","gravatar_id":"","url":"https://api.github.com/users/drone","html_url":"https://github.com/drone","followers_url":"https://api.github.com/users/drone/followers","following_url":"https://api.github.com/users/drone/following{/other_user}","gists_url":"https://api.github.com/users/drone/gists{/gist_id}","starred_url":"https://api.github.com/users/drone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drone/subscriptions","organizations_url":"https://api.github.com/users/drone/orgs","repos_url":"https://api.github.com/users/drone/repos","events_url":"https://api.github.com/users/drone/events{/privacy}","received_events_url":"https://api.github.com/users/drone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/drone/docs","description":"documentation for the Drone Continuous Integration project","fork":false,"url":"https://api.github.com/repos/drone/docs","forks_url":"https://api.github.com/repos/drone/docs/forks","keys_url":"https://api.github.com/repos/drone/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drone/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drone/docs/teams","hooks_url":"https://api.github.com/repos/drone/docs/hooks","issue_events_url":"https://api.github.com/repos/drone/docs/issues/events{/number}","events_url":"https://api.github.com/repos/drone/docs/events","assignees_url":"https://api.github.com/repos/drone/docs/assignees{/user}","branches_url":"https://api.github.com/repos/drone/docs/branches{/branch}","tags_url":"https://api.github.com/repos/drone/docs/tags","blobs_url":"https://api.github.com/repos/drone/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drone/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drone/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/drone/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drone/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/drone/docs/languages","stargazers_url":"https://api.github.com/repos/drone/docs/stargazers","contributors_url":"https://api.github.com/repos/drone/docs/contributors","subscribers_url":"https://api.github.com/repos/drone/docs/subscribers","subscription_url":"https://api.github.com/repos/drone/docs/subscription","commits_url":"https://api.github.com/repos/drone/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/drone/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/drone/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/drone/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/drone/docs/contents/{+path}","compare_url":"https://api.github.com/repos/drone/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drone/docs/merges","archive_url":"https://api.github.com/repos/drone/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drone/docs/downloads","issues_url":"https://api.github.com/repos/drone/docs/issues{/number}","pulls_url":"https://api.github.com/repos/drone/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/drone/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/drone/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drone/docs/labels{/name}","releases_url":"https://api.github.com/repos/drone/docs/releases{/id}","deployments_url":"https://api.github.com/repos/drone/docs/deployments","created_at":"2014-02-07T06:27:21Z","updated_at":"2016-04-09T00:38:23Z","pushed_at":"2016-04-20T20:55:57Z","git_url":"git://github.com/drone/docs.git","ssh_url":"git@github.com:drone/docs.git","clone_url":"https://github.com/drone/docs.git","svn_url":"https://github.com/drone/docs","homepage":null,"size":1551,"stargazers_count":25,"watchers_count":25,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":17,"forks":58,"open_issues":17,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/drone/docs/pulls/129"},"html":{"href":"https://github.com/drone/docs/pull/129"},"issue":{"href":"https://api.github.com/repos/drone/docs/issues/129"},"comments":{"href":"https://api.github.com/repos/drone/docs/issues/129/comments"},"review_comments":{"href":"https://api.github.com/repos/drone/docs/pulls/129/comments"},"review_comment":{"href":"https://api.github.com/repos/drone/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/drone/docs/pulls/129/commits"},"statuses":{"href":"https://api.github.com/repos/drone/docs/statuses/c6624b2d5c28e3f9961cfb67303e9766541440f0"}}}}