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 Server as a ReaderProcessor #2735
Comments
Related: #2665 |
I can take a shot at this issue if it is accepted by the project |
Thanks @goober -- I've assigned you! |
I have opened an issue against the git-url-parse repository IonicaBizau/git-url-parse#113 for adding support for bitbucket server url parsing. I will hold on further implementation of this feature until the above pull request has been sorted out |
Hi Team, any update on this? I need to integrate repo from bitbucket server. |
@amitkhurana92 Thanks for the reminder. IonicaBizau/git-url-parse#113 is now ready for review, and work can be continued when it has been accepted. |
@goober the code you have suggested is not working. I think you also need to change in the type mapping
Getting this also when I change the host in yaml file Backend failed to start up Error: Bitbucket integration currently only supports 'bitbucket.org', tried to use host 'https://bitbucket.companyname.africa/bitbucket' |
The open pull request that is referred in the comment above is to add support in the underlying library that backstage is using for fetching content from bitbucket server. No work has started yet in the backstage project |
@amitkhurana92 Please feel free to test the open pull request #3030 to verify that my implementation solves your issues |
@goober good to see that. I will check this over the weekend. |
Is there a template with an example of the Integration for the custom bitbucket urls? |
I would also benefit from any documentation on a sample config for Bitbucket Server. I am getting Error: Unable to read url, Error: Unable to read https://bitbucket..... failed, reason: unable to get local issuer certificate @goober is there a way to point to a cert or maybe disable it as a workaround for now? |
Hi @goober, can you share an example where should I write the credentials? |
Hi @regicsolutions. |
@JdataNich and @amitkhurana92 if you are using Bitbucket Server the following setup should work for you: integrations:
bitbucket:
- host: bitbucket.mycompany.com
apiBaseUrl: https://bitbucket.mycompany.com/rest/api/1.0
token: <your personal access token> # https://confluence.atlassian.com/bitbucketserver/personal-access-tokens-939515499.html |
Thanks @goober ill give that a try. Have you had any luck integrating Bitbucket Server with the scaffolder backend for software templates? |
Hi Goober, It is not working This is my app-cofig.yaml Below is the exception I am getting This is catalog-info.yaml This is the URL I am entering https://bitbucket.mycompany.com/bitbucket/projects/project-name/repos/repo-name/browse/component.yaml?at=backstage-testing |
For reference the issue ^ was |
Add Provider Configuration for Bitbucket Server Processor
Currently, the BitbucketReaderProcessor.ts does not support additional parameters such as target or apiBaseUrl.
Possible Implementation
Copy the providerconfig and implementation from GithubReaderProcessor in a way that makes sense for BitbucketReaderProcessor. Make sure that api differences between bitbucket.org and a self-hosted Bitbucket server are taken into acount.
Take inspiration of changes made in #2582
Context
Access a self-hosted Bitbucket server instance with a custom url.
The text was updated successfully, but these errors were encountered: