You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2022/10/08 00:27:19 UTC
[GitHub] [incubator-devlake] hezyin opened a new issue, #3312: [Bug][Bitbucket] Bitbucket fails to clone private repo via gitextractor
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: commits-unsubscribe@devlake.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] mindlesscloud closed issue #3312: [Bug][Bitbucket] Bitbucket fails to clone private repo via gitextractor
Posted by GitBox <gi...@apache.org>.
mindlesscloud closed issue #3312: [Bug][Bitbucket] Bitbucket fails to clone private repo via gitextractor
URL: https://github.com/apache/incubator-devlake/issues/3312
--
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: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org