-
Notifications
You must be signed in to change notification settings - Fork 353
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
SCM fetch fails due to neglected port of bitbucket server #813
Comments
For local testing I use Bitbucket on For example {
...
"links": {
"clone": [
{
"href": "ssh://[email protected]:7999/project_1/rep_1.git",
"name": "ssh"
},
{
"href": "https://bitbucket-primary.local:7990/bitbucket/scm/project_1/rep_1.git",
"name": "http"
}
],
}
...
} |
@andrey-fomin thank you for picking this up I see where you are heading to,
|
Ok. Then it means that clone links should not be used at all. The repository clone link should be constructed by bitbucket address, project name and repo name. And yes before #796 http clone links from API response was not used. There was a lot of code to handle them but finally http clone link was just constructed by server address, project and repo name. Then I have question to maintainers. What is the better way to fix this problem. I see following approaches
|
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
see above
Reproduction steps
1.1 e.g. https://your.bitbucketserver.com:9443/
2.1 using bitbucket as your branch source
2.2 select your configured server and credentials
2.3 see success of that connection by finding and selecting the project/owner and the repo-names
2.4 save your changes
Expected Results
successful branch checkouts in step 4
fetch from same URL as configured in jenkins and used for branch detection
4.1 logs: git config remote.origin.url https://your.bitbucketserver.com:9443/scm/yourproject/yourrepo.git # timeout=10
Actual Results
step
4. observe that each branch SCM checkout times out
4.1 logs: git config remote.origin.url https://your.bitbucketserver.com/scm/yourproject/yourrepo.git # timeout=10
see missing sample port :9443 above!
Anything else?
please support HTTP access tokens for repositories ;)
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered: