Skip to content

~/.git-credentials gets github added to it when using bitbucket and running jx pipeline effective #395

Description

@rawlingsj

from slack https://kubernetes.slack.com/archives/C9MBGQJRH/p1626256285337700

...

okay so i replicated the weird thing with ~/.git-credentials

  • create a ~/.git-credentials with
    https://GIT_USER:GIT_TOKEN@bitbucket.org
  • run jx pipeline effective
  • select presubmit/pr
  • cat ~/.git-credentials
    you will now see a line https://:@github.com added.
  • run jx gitops variables I get output of
jx gitops variables
WARNING: ignoring missing user name in git credentials file: /Users/admin/.git-credentials URL: https://:@github.com
about to run: git clone https://bitbucket.org/OWNER/CLUSTER_REPO.git /var/folders/x8/5mg84jyx4r70xjcqdrk39lzc0000gn/T/jx-git-637851936 in dir /var/folders/x8/5mg84jyx4r70xjcqdrk39lzc0000gn/T
Cloning into '/var/folders/x8/5mg84jyx4r70xjcqdrk39lzc0000gn/T/jx-git-637851936'...
about to run: git rev-parse --abbrev-ref HEAD in dir .
test/helm
WARNING: no $BUILD_ID found so cannot create the BUILD_NUMBER

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