Add support for Bitbucket Server

Issue #2 resolved
Patrick Streule repo owner created an issue

Allow opening PRs and change sets in Bitbucket server.

Comments (8)

  1. Jakub Pawlinski

    isn't the codebucket.bitbucketHosts": ["stash.company.com"] meant to support this? I'm getting only Could not parse host name: stash.company.com after setting this

  2. Patrick Streule reporter

    The codebucket.bitbucketHosts setting is for alternative Bitbucket Cloud hosts (the Atlassian-internal staging environment, for instance).

    I am currently working on Bitbucket Server support and will release a new version probably tomorrow.

  3. Patrick Streule reporter

    I have released version 0.2.0 to the Visual Studio Code Marketplace with support for Bitbucket Server.

    Configuration in settings.json:

    "codebucket.bitbucketServerHosts": [
        {
            "webHost": "https://bitbucket.example.com",
            "gitHost": "bitbucket.example.com:7990"
        }
    ]
    
    • gitHost: The host name shown in git remote -v, including port, of the Bitbucket Server instance.
    • webHost: The base URL of the Bitbucket Server UI. If not specified, it defaults to https://<gitHost>.

    Let me know if you encounter issues.

  4. Jakub Pawlinski

    Sorry, just got back. So I tried:

    • commented out "codebucket.bitbucketHosts"
    • added new declarations:
    "codebucket.bitbucketServerHosts": [{
            "webHost": "https://stash.company.com",
            "gitHost": "stash.company.com:7990"
        }]
        "codebucket.issueTrackers": [{
            "type": "jira",
            "host": "https://jira.company.com",
            "projectKeys": ["TEAM"]
        }],
    

    Now I'm getting: Unable to find a remote matching: bitbucket.org | stash.company.com:7990 on any of four buttons beginning with "Bitbucket:"

    The git tab in vscode works fine. Not sure how to debug it deeper

  5. Log in to comment