hezyin opened a new issue, #3312: URL: https://github.com/apache/incubator-devlake/issues/3312
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues. ### What happened The Bitbucket plugin failed to clone a private repo via gitextractor. ### What you expected to happen The Bitbucket plugin successfully invokes gitextractor on a private repo. ### How to reproduce **Version: v0.14.0-alpha1** Installation method: docker-compose 1. First create a bitbucket connection with ``` curl --location --request POST 'http://localhost:8080/plugins/bitbucket/connections' \ --header 'Content-Type: application/json' \ --data-raw '{ "endpoint": "https://api.bitbucket.org/2.0/", "username": "yinhezheng", "password": "<the app password I created for DevLake>", "name": "Bitbucket Cloud" }' ``` 2. Then create a blueprint with ``` curl --location --request POST 'http://localhost:8080/blueprints' \ --header 'Content-Type: application/json' \ --data-raw '{ "enabled": true, "mode": "NORMAL", "name": "My Bitbucket Blueprint", "cronConfig": "", "isManual": true, "plan": [[]], "settings": { "connections": [ { "plugin": "bitbucket", "connectionId": <the id of the newly created connection>, "scope": [ { "entities": [ "CODE", "TICKET", "CODEREVIEW", "CROSS" ], "options": { "owner": "yinhezheng", "repo": "incubator-devlake" } } ] } ], "version": "1.0.0" } }' ``` See the screenshot for the generated plan and the URL passed to gitextractor. This URL doesn't work for `git clone <URL>`. <img width="1142" alt="Screen Shot 2022-10-07 at 5 25 47 PM" src="https://user-images.githubusercontent.com/2908155/194678248-2ccc7379-f989-43ab-b810-acbf938e7606.png"> 3. See the following error message: <img width="1064" alt="Screen Shot 2022-10-07 at 5 21 22 PM" src="https://user-images.githubusercontent.com/2908155/194678062-368dd357-4da0-417e-a52e-cfc22e142537.png"> ### Anything else Relevant code: https://github.com/apache/incubator-devlake/blob/main/plugins/bitbucket/api/blueprint.go#L142 ### Version main ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
