Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for BitBucket repositories #4

Merged
merged 11 commits into from
Aug 8, 2019

Conversation

Oduig
Copy link

@Oduig Oduig commented Jul 29, 2019

Solves #2
I managed to extract a common interface and finish an implementation with BitBucket support.

It's quite a big change due to SCM-specific code having to be separated. It is fully backwards compatible with one exception, I thought it better to rename the GITHUB_SERVER variable to SERVER rather than making separate versions for each SCM. I have the image up on jodiug/drone-tree-config, if anyone in the community would like to test it that would be very helpful.

The following environment variables need to be passed drone-tree-config to add BitBucket support:

AUTH_SERVER: https://bitbucket.org
SERVER: https://api.bitbucket.org
BITBUCKET_CLIENT: client_id
BITBUCKET_SECRET: client_secret

You can use the same client credentials as you use for drone-master.

@Oduig Oduig mentioned this pull request Jul 29, 2019
@Oduig Oduig changed the title #2 Add support for BitBucket repositories Add support for BitBucket repositories Jul 29, 2019
@foosinn foosinn merged commit 3ca1827 into bitsbeats:master Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants