Skip to content
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

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

Open
rawlingsj opened this issue Jul 14, 2021 · 1 comment

Comments

@rawlingsj
Copy link
Contributor

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:[email protected]
  • 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
@dali546
Copy link

dali546 commented Jul 14, 2021

if f.GitServerURL == "" {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants