6/12/2023 0 Comments Buzzbundle authentication failedIf that fails with a database "postgres" does not exists error, then you are most likely not on a Ubuntu or Debian server :-) In this case simply add template1 to the command: sudo -u postgres psql template1 That means, that you can login to that account only by using the postgres OS user account.Īssuming, that you have root access on the box you can do: sudo -u postgres psql NOTE: make sure that when you go to "Manage Jenkins" -> "Configure System" -> "Git", "Path to Git executable" is set to something like "C:\Program Files (x86)\Git\cmd\git.exe".įollowing these steps I was able to pull down my code from the repository.If I remember correctly the user postgres has no DB password set on Ubuntu by default. Under "Source Code Management", select "Git", under "Repository URL", enter: "Credentials", select credential that you've just created. Now you need to register your private key with Jenkins: go to "Credentials" -> "Global credentials" -> "Add Credentials", enter your User Name, Description (optional), select "From a file on Jenkins master" and enter C:\Users\YOUR_WINDOWS_USER_NAME\.ssh\id_rsa. You can use git or hg to connect to Bitbucket. To test the keys, I ran this command: $ ssh -T in as. Once you have the public key, you need to register it with Bitbucket, go to "Manage Account" -> "SSH Keys" -> "Add Key". Then, open the public key file "id_rsa.pub" that was generated in "C:\Users\YOUR_WINDOWS_USER_NAME\.ssh" with a text editor and copy the content. NOTE: I generated keys without a passphrase! This was the only way I could get it to work. It works on Windows, all you have to do is double-click "Git Bash" in "C:\Program Files (x86)\Git" and follow the instruction to generate ssh keys. OK, here is what worked for me, but first, my set-up was as follows: Stderr: fatal: Authentication failed for .CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1098)Īt .CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:984)Īt .CliGitAPIImpl.access$200(CliGitAPIImpl.java:68)Īt .CliGitAPIImpl$1.execute(CliGitAPIImpl.java:217)Īt .CliGitAPIImpl.fetch(CliGitAPIImpl.java:223)Īt .fetch(GitAPI.java:229)Īt .fetchFrom(GitSCM.java:610) This is the Repository URL I am using: sure if I need to generate keys for Jenkins-Bitbucket, if yes, can anyone please provide detailed instructions on how to do that for Windows? Started by user anonymousīuilding in workspace C:\Users\\.jenkins\workspace\įetching changes from the remote Git repositoryįetching upstream changes from Failed to fetch from Failed to fetch from .fetchFrom(GitSCM.java:612)Īt .retrieveChanges(GitSCM.java:836)Īt .checkout(GitSCM.java:861)Īt (AbstractProject.java:1414)Īt $faultCheckout(AbstractBuild.java:652)Īt (SCMCheckoutStrategy.java:88)Īt $n(AbstractBuild.java:561)Īt (Run.java:1678)Īt (FreeStyleBuild.java:46)Īt (ResourceController.java:88)Īt (Executor.java:231)Ĭaused by: : Command "git fetch -tags -progress refs/heads/*:refs/remotes//*" returned status code 128: I am trying to configure Jenkins in a Windows 7 environment to work with Git repository on Bitbucket, but when I try to do a build - I get the error below.
0 Comments
Leave a Reply. |