payload: {"action":"created","issue":{"url":"https://api.github.com/repos/jenkins-x/jx/issues/3211","repository_url":"https://api.github.com/repos/jenkins-x/jx","labels_url":"https://api.github.com/repos/jenkins-x/jx/issues/3211/labels{/name}","comments_url":"https://api.github.com/repos/jenkins-x/jx/issues/3211/comments","events_url":"https://api.github.com/repos/jenkins-x/jx/issues/3211/events","html_url":"https://github.com/jenkins-x/jx/issues/3211","id":414115821,"node_id":"MDU6SXNzdWU0MTQxMTU4MjE=","number":3211,"title":"jx import --git-provider-url<> --url<> fails because a false organisation is detected","user":{"login":"lpetrea","id":902489,"node_id":"MDQ6VXNlcjkwMjQ4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/902489?v=4","gravatar_id":"","url":"https://api.github.com/users/lpetrea","html_url":"https://github.com/lpetrea","followers_url":"https://api.github.com/users/lpetrea/followers","following_url":"https://api.github.com/users/lpetrea/following{/other_user}","gists_url":"https://api.github.com/users/lpetrea/gists{/gist_id}","starred_url":"https://api.github.com/users/lpetrea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpetrea/subscriptions","organizations_url":"https://api.github.com/users/lpetrea/orgs","repos_url":"https://api.github.com/users/lpetrea/repos","events_url":"https://api.github.com/users/lpetrea/events{/privacy}","received_events_url":"https://api.github.com/users/lpetrea/received_events","type":"User","site_admin":false},"labels":[{"id":799406481,"node_id":"MDU6TGFiZWw3OTk0MDY0ODE=","url":"https://api.github.com/repos/jenkins-x/jx/labels/area/import","name":"area/import","color":"2b59f2","default":false},{"id":1150636247,"node_id":"MDU6TGFiZWwxMTUwNjM2MjQ3","url":"https://api.github.com/repos/jenkins-x/jx/labels/kind/bug","name":"kind/bug","color":"ee0701","default":false},{"id":1150637895,"node_id":"MDU6TGFiZWwxMTUwNjM3ODk1","url":"https://api.github.com/repos/jenkins-x/jx/labels/priority/important-longterm","name":"priority/important-longterm","color":"edb85c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-02-25T13:54:15Z","updated_at":"2019-07-10T06:59:28Z","closed_at":null,"author_association":"NONE","body":"### Summary \r\nI am trying to import a project into Jenkins X. We are using a BitBucket server at a specific URL that looks like https://company.com/BitBucketServer. The command fails because the wrong bitbuckerserver URL is detected. The detected URL is https://company.com. The command shows also that the git URL is build from project URL in a wrong manner for this case. \r\n\r\n### Steps to reproduce the behavior\r\n\r\njx import --git-provider-kind=bitbucketserver --git-provider-url=https://company.com/BitBucketServer  --org orga  --url https://company.com/BitBucketServer/scm/orga/project-test.git --verbose=true\r\n\r\n### Expected behavior\r\n\r\nI expect the command to run with success.\r\n\r\n### Actual behavior\r\n\r\nThe command fails with:\r\n\r\nCould not find a username for Git server https://company.com\r\n\r\nThe git server should be https://company.com/BitBucketServer\r\n\r\nThe command throws the following warning:\r\n\r\norganisation BitBucketServer detected from URL https://company.com/BitBucketServer/scm/orga/project-test.git. '--org orga' will be ignored\r\n\r\nThe detection is wrong in this case.\r\n\r\n### Jx version\r\n\r\nThe output of `jx version` is:\r\n\r\nNAME               VERSION\r\njx                 1.3.925\r\njenkins x platform 0.0.3402\r\nKubernetes cluster v1.11.5-eks-6bad6d\r\nkubectl            v1.10.11\r\nhelm client        v2.12.3+geecf22f\r\nhelm server        v2.12.3+geecf22f\r\ngit                git version 2.20.1\r\nOperating System   Mac OS X 10.14.3 build 18D109\r\n\r\n### Jenkins type\r\n\r\n- [x ] Classic Jenkins\r\n\r\n\r\n### Kubernetes cluster\r\n\r\nI created the cluster with the command:\r\n\r\njx create cluster eks\r\n\r\n### Operating system / Environment\r\n\r\nMac OS X\r\n"},"comment":{"url":"https://api.github.com/repos/jenkins-x/jx/issues/comments/509935672","html_url":"https://github.com/jenkins-x/jx/issues/3211#issuecomment-509935672","issue_url":"https://api.github.com/repos/jenkins-x/jx/issues/3211","id":509935672,"node_id":"MDEyOklzc3VlQ29tbWVudDUwOTkzNTY3Mg==","user":{"login":"zjawol","id":6019076,"node_id":"MDQ6VXNlcjYwMTkwNzY=","avatar_url":"https://avatars0.githubusercontent.com/u/6019076?v=4","gravatar_id":"","url":"https://api.github.com/users/zjawol","html_url":"https://github.com/zjawol","followers_url":"https://api.github.com/users/zjawol/followers","following_url":"https://api.github.com/users/zjawol/following{/other_user}","gists_url":"https://api.github.com/users/zjawol/gists{/gist_id}","starred_url":"https://api.github.com/users/zjawol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjawol/subscriptions","organizations_url":"https://api.github.com/users/zjawol/orgs","repos_url":"https://api.github.com/users/zjawol/repos","events_url":"https://api.github.com/users/zjawol/events{/privacy}","received_events_url":"https://api.github.com/users/zjawol/received_events","type":"User","site_admin":false},"created_at":"2019-07-10T06:59:28Z","updated_at":"2019-07-10T06:59:28Z","author_association":"NONE","body":"Same issue. I can't import any projects from bitbucket server."}}
other: {"actor":{"display_login":"zjawol"}}