Skip to content

owner field of bitbucket server repository is always reset to wrong value #200

@Danny02

Description

@Danny02

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions