owner field of bitbucket server repository is always reset to wrong value
Opened this issue · 0 comments
Hi,
I have some problems setting up Jenkins-X with Bitbucket Server in my org.
The git URL of the Jenkins-X cluster settings is:
https://myorg.com/bitbucket/scm/myteam/jx3-kubernetes.git
in the jx-requirements.yml I have the following values:
environmentGitOwner: myteam
gitKind: bitbucketserver
gitServer: https://myorg.com/bitbucket
When I execute jx project import
I get the error:
no --git-kind supplied for server https://myorg.com so assuming kind is github
When I use jx project import --git-kind bitbucketserver
I get the error:
error: failed to clone dev env git repository: failed to clone dev environment git repository https://myorg.com/bitbucket/scm/bitbucket/jx3-kubernetes.git
The reason for that seems to be a commit by the git operator with the message "chore: regenerated". This commits adds the following settings:
environments:
- key: dev
owner: bitbucket
repository: jx3-kubernetes
The value gets always reset if I change the owner to myteam.