[JIRA] [git-client-plugin] (JENKINS-26757) "Error cloning remote repo 'origin'" with username:passw...@bitbucket.org URLs

2016-04-20 Thread flavio.do...@gmx.ch (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Flavio Donzé resolved as Fixed 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
I just updated to Jenkins 2.0 Release Candidate. In the same move I updated "Git plugin" to version 2.4.4 and "Git client plugin" to version 1.19.6. In this constellation the error does not occur anymore and the sources are cloned as expected. 
 
 
 
 
 
 
 
 
 
 Jenkins /  JENKINS-26757 
 
 
 
  "Error cloning remote repo 'origin'" with username:passw...@bitbucket.org URLs  
 
 
 
 
 
 
 
 
 

Change By:
 
 Flavio Donzé 
 
 
 

Status:
 
 Reopened Resolved 
 
 
 

Resolution:
 
 Fixed 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-client-plugin] (JENKINS-30927) 'C:\Program' is not recognized as an internal or external command

2015-10-15 Thread flavio.do...@gmx.ch (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Flavio Donzé edited a comment on  JENKINS-30927 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: 'C:\Program' is not recognized as an internal or external command  
 
 
 
 
 
 
 
 
 
 I took a look at the code and tried to create the same handling outside of Jenkins:>> run.batset GIT_SSH=C:\test_ssh\temp\ssh.batset SSH_ASKPASS=C:\test_ssh\temp\pass.batC:/Progra~1/Git/bin/git.exe init C:\test_ssh\workspacecd C:\test_ssh\workspaceC:/Progra~1/Git/bin/git.exe -c core.askpass=true fetch --tags --progress ssh://g...@bitbucket.org/CLIENT/test.git +refs/heads/*:refs/remotes/origin/*cd C:\test_ssh\temp>>  run  ssh .bat@echo off"C:\Program Files\Git\usr\bin\ssh.exe" -i "C:\test_ssh\temp\ssh.key" -l "USER" -o StrictHostKeyChecking=no %*>> pass.batecho "">> key.sshcontains the private keyAnd it worked Then I tried to use an ssh key with passphrase, I had to enter it so looks like SSH_ASKPASS is being ignored. So I'm a bit clue less now, since it should work without passphrase. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-client-plugin] (JENKINS-30927) 'C:\Program' is not recognized as an internal or external command

2015-10-15 Thread flavio.do...@gmx.ch (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Flavio Donzé commented on  JENKINS-30927 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: 'C:\Program' is not recognized as an internal or external command  
 
 
 
 
 
 
 
 
 
 
I took a look at the code and tried to create the same handling outside of Jenkins: 
>> run.bat set GIT_SSH=C:\test_ssh\temp\ssh.bat set SSH_ASKPASS=C:\test_ssh\temp\pass.bat 
C:/Progra~1/Git/bin/git.exe init C:\test_ssh\workspace cd C:\test_ssh\workspace C:/Progra~1/Git/bin/git.exe -c core.askpass=true fetch --tags --progress ssh://g...@bitbucket.org/CLIENT/test.git +refs/heads/:refs/remotes/origin/ cd C:\test_ssh\temp 
>> run.bat @echo off "C:\Program Files\Git\usr\bin\ssh.exe" -i "C:\test_ssh\temp\ssh.key" -l "USER" -o StrictHostKeyChecking=no %* 
>> pass.bat echo "" 
>> key.ssh contains the private key 
And it worked  Then I tried to use an ssh key with passphrase, I had to enter it so looks like SSH_ASKPASS is being ignored.  
So I'm a bit clue less now, since it should work without passphrase. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-client-plugin] (JENKINS-30927) 'C:\Program' is not recognized as an internal or external command

2015-10-15 Thread flavio.do...@gmx.ch (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Flavio Donzé commented on  JENKINS-30927 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: 'C:\Program' is not recognized as an internal or external command  
 
 
 
 
 
 
 
 
 
 
Interesting, if I remove the quotes from ssh.bat 
from @echo off "C:\Program Files\Git\usr\bin\ssh.exe" -i "C:\test_ssh\temp\ssh.key" -l "USER" -o StrictHostKeyChecking=no %* to @echo off C:\Program Files\Git\usr\bin\ssh.exe -i "C:\test_ssh\temp\ssh.key" -l "USER" -o StrictHostKeyChecking=no %* 
I get the same exception: 'C:\Program' is not recognized as an internal or external command,  operable program or batch file.  fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 
But this can not be it, since I can see how the quotes are added in:  org.jenkinsci.plugins.gitclient.CliGitAPIImpl.createWindowsGitSSH(File, String) Or could they be removed somewhere? Is the git command accessing other bat files? 
I tried to override the environment variable "ProgramFiles" with "C:/Progra~1" but failed. Tried -DProgramFiles= in the tomcat configuration, set the variable in windows and set it in jenkins configurations. Nothing worked.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-client-plugin] (JENKINS-30927) 'C:\Program' is not recognized as an internal or external command

2015-10-15 Thread flavio.do...@gmx.ch (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Flavio Donzé edited a comment on  JENKINS-30927 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: 'C:\Program' is not recognized as an internal or external command  
 
 
 
 
 
 
 
 
 
 Thanks for your information and thoughts. I removed the GIT_SSH and the TortoiseGIT entries in the PATH variable. Same result, still getting the error. This is the log I get if I execute the build:Cloning repository ssh://g...@bitbucket.org/scodi/test.git > C:/Progra~1/Git/bin/git.exe init DIRECTORY\test_ssh # timeout=10Fetching upstream changes from ssh://g...@bitbucket.org/CLIENT/test.git > C:/Progra~1/Git/bin/git.exe --version # timeout=10using GIT_SSH to set credentials bitbucket nopass > C:/Progra~1/Git/bin/git.exe -c core.askpass=true fetch --tags --progress ssh://g...@bitbucket.org/CLIENT/test.git +refs/heads/*:refs/remotes/origin/*ERROR: Error cloning remote repo 'origin'hudson.plugins.git.GitException: Command "C:/Progra~1/Git/bin/git.exe -c core.askpass=true fetch --tags --progress ssh://g...@bitbucket.org/ scodi CLIENT /test.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:stdout: stderr: 'C:\Program' is not recognized as an internal or external command,operable program or batch file.fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:505) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1003) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1277) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408)ERROR: nullFinished: FAILUREInteresting if I execute the commands, as printed in the log, in a normal CMD it works. I still don't know where the 'C:\Program' is coming from, since all my relevant paths are with ~. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

  

[JIRA] [git-client-plugin] (JENKINS-30927) 'C:\Program' is not recognized as an internal or external command

2015-10-15 Thread flavio.do...@gmx.ch (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Flavio Donzé commented on  JENKINS-30927 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: 'C:\Program' is not recognized as an internal or external command  
 
 
 
 
 
 
 
 
 
 
Thanks for your information and thoughts.  
I removed the GIT_SSH and the TortoiseGIT entries in the PATH variable. Same result, still getting the error.  
This is the log I get if I execute the build: 
Cloning repository ssh://g...@bitbucket.org/scodi/test.git > C:/Progra~1/Git/bin/git.exe init DIRECTORY\test_ssh # timeout=10 Fetching upstream changes from ssh://g...@bitbucket.org/CLIENT/test.git > C:/Progra~1/Git/bin/git.exe --version # timeout=10 using GIT_SSH to set credentials bitbucket nopass > C:/Progra~1/Git/bin/git.exe -c core.askpass=true fetch --tags --progress ssh://g...@bitbucket.org/CLIENT/test.git +refs/heads/:refs/remotes/origin/ ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "C:/Progra~1/Git/bin/git.exe -c core.askpass=true fetch --tags --progress ssh://g...@bitbucket.org/scodi/test.git +refs/heads/:refs/remotes/origin/" returned status code 128: stdout:  stderr: 'C:\Program' is not recognized as an internal or external command, operable program or batch file. fatal: Could not read from remote repository. 
Please make sure you have the correct access rights and the repository exists. 
 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:505) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1003) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1277) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) ERROR: null Finished: FAILURE 
Interesting if I execute the commands, as printed in the log, in a normal CMD it works. I still don't know where the 'C:\Program' is coming from, since all my relevant paths are with ~. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

[JIRA] [git-client-plugin] (JENKINS-30927) 'C:\Program' is not recognized as an internal or external command

2015-10-15 Thread flavio.do...@gmx.ch (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Flavio Donzé commented on  JENKINS-30927 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: 'C:\Program' is not recognized as an internal or external command  
 
 
 
 
 
 
 
 
 
 
Yes I'm using Jenkins credentials, copied the private key into jenkins. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-client-plugin] (JENKINS-30927) 'C:\Program' is not recognized as an internal or external command

2015-10-15 Thread flavio.do...@gmx.ch (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Flavio Donzé edited a comment on  JENKINS-30927 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: 'C:\Program' is not recognized as an internal or external command  
 
 
 
 
 
 
 
 
 
 Thanks for your information and thoughts. I removed the GIT_SSH and the TortoiseGIT entries in the PATH variable. Same result, still getting the error. This is the log I get if I execute the build:Cloning repository ssh://g...@bitbucket.org/ scodi CLIENT /test.git > C:/Progra~1/Git/bin/git.exe init DIRECTORY\test_ssh # timeout=10Fetching upstream changes from ssh://g...@bitbucket.org/CLIENT/test.git > C:/Progra~1/Git/bin/git.exe --version # timeout=10using GIT_SSH to set credentials bitbucket nopass > C:/Progra~1/Git/bin/git.exe -c core.askpass=true fetch --tags --progress ssh://g...@bitbucket.org/CLIENT/test.git +refs/heads/*:refs/remotes/origin/*ERROR: Error cloning remote repo 'origin'hudson.plugins.git.GitException: Command "C:/Progra~1/Git/bin/git.exe -c core.askpass=true fetch --tags --progress ssh://g...@bitbucket.org/CLIENT/test.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:stdout: stderr: 'C:\Program' is not recognized as an internal or external command,operable program or batch file.fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:505) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1003) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1277) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408)ERROR: nullFinished: FAILUREInteresting if I execute the commands, as printed in the log, in a normal CMD it works. I still don't know where the 'C:\Program' is coming from, since all my relevant paths are with ~. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 

[JIRA] [git-client-plugin] (JENKINS-30927) 'C:\Program' is not recognized as an internal or external command

2015-10-14 Thread flavio.do...@gmx.ch (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Flavio Donzé commented on  JENKINS-30927 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: 'C:\Program' is not recognized as an internal or external command  
 
 
 
 
 
 
 
 
 
 
Yes both https://github.com/jenkinsci/git-client-plugin and git://github.com/jenkinsci/git-client-plugin.git/ are working. 
Here some system variables, PATH I reduced to the relevant entries. I use the mangled form for most jenkins relevant entries, since I had path problems in the past. GIT_HOME = C:\Progra~1\Git\bin GIT_SSH = C:\Progra~1\Git\usr\bin\ssh.exe JAVA_HOME = C:\Progra~1\Java\jdk1.8.0_60 PATH = C:\Progra~1\Java\jdk1.8.0_60\bin;C:\Progra~1\Java\jdk1.8.0_60\jre\bin\client;C:\Progra~1\TortoiseGit\bin;C:\Program Files\TortoiseGit\bin;C:\Progra~1\Git\bin;C:\Progra~1\Git\usr\bin 
The private ssh key is stored in: %USERPROFILE%\.ssh\id_rsa The public ssh key %USERPROFILE%\.ssh\id_rsa.pub is added in bitbucket. If I run "ssh -T g...@bitbucket.org" in a cmd, I get the following output after entering the passphrase: logged in as USERNAME You can use git or hg to connect to Bitbucket. Shell access is disabled. 
I copied the value of the private key into jekins credential-store and added the passphrase. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-client-plugin] (JENKINS-30927) 'C:\Program' is not recognized as an internal or external command

2015-10-14 Thread flavio.do...@gmx.ch (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Flavio Donzé commented on  JENKINS-30927 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: 'C:\Program' is not recognized as an internal or external command  
 
 
 
 
 
 
 
 
 
 
Additional information, I now tried to create a ssh key without passphrase (just for testing), getting the same error. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-client-plugin] (JENKINS-30927) 'C:\Program' is not recognized as an internal or external command

2015-10-13 Thread flavio.do...@gmx.ch (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Flavio Donzé created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-30927 
 
 
 
  'C:\Program' is not recognized as an internal or external command  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 
 Nicolas De Loof 
 
 
 

Components:
 

 git-client-plugin, git-plugin 
 
 
 

Created:
 

 13/Oct/15 3:13 PM 
 
 
 

Priority:
 
  Critical 
 
 
 

Reporter:
 
 Flavio Donzé 
 
 
 
 
 
 
 
 
 
 
I tried to setup a test project, using a git project connecting through ssh. After selecting the ssh credential and adding the git URL (ssh://g...@bitbucket.org/CLIENT/test.git) I get the following message: --- Failed to connect to repository : Command "C:/Progra~1/Git/bin/git.exe -c core.askpass=true ls-remote -h ssh://g...@bitbucket.org/CLIENT/test.git HEAD" returned status code 128: stdout:  stderr: 'C:\Program' is not recognized as an internal or external command,  operable program or batch file.  fatal: Could not read from remote repository. 
Please make sure you have the correct access rights and the repository exists. -- 
My setup: Jenkins: 1.633 GIT client plugin: 1.19.0 GIT plugin: 2.4.0 
Jenkins Git Configuration is set to: C:/Progra~1/Git/bin/git.exe Git 2.6.1 from https://git-scm.com/downloads. 
 
 
 
 
 
 
 
 
 
 
 
 
 

[JIRA] [git-client-plugin] (JENKINS-30927) 'C:\Program' is not recognized as an internal or external command

2015-10-13 Thread flavio.do...@gmx.ch (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Flavio Donzé commented on  JENKINS-30927 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: 'C:\Program' is not recognized as an internal or external command  
 
 
 
 
 
 
 
 
 
 
Yes I'm sure the path is correct, I also tried: C:\Program Files\Git\bin\git.exe C:/Program Files/Git/bin/git.exe 
I switched to the mangled form because of the error message: stderr: 'C:\Program' is not recognized as an internal or external command, The message indicates that something is wrong with the path. 
Yes other paths work, e.g. https://. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-client-plugin] (JENKINS-24368) Authentication failed for https://usern...@bitbucket.org/project/repository.git

2015-07-29 Thread flavio.do...@gmx.ch (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Flavio Donz commented on  JENKINS-24368 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: Authentication failed for https://usern...@bitbucket.org/project/repository.git  
 
 
 
 
 
 
 
 
 
 
Just updated to:  GIT client plugin: 1.18.1-SNAPSHOT (private-ff9c2192-jenkins) GIT plugin: 2.4.0 
Still getting the exception, slightly different stacktrace though: 
ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command C:/Progra~2/Git/bin/git.exe -c core.askpass=true fetch --tags --progress https://usern...@bitbucket.org/project/repository.git +refs/heads/:refs/remotes/origin/ returned status code 128: stdout:  stderr: fatal: Authentication failed for 'https://sc...@bitbucket.org/scodi/tools.git/' 
 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1605) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1368) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:300) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:486) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1003) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:129) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1284) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups 

[JIRA] [git-client-plugin] (JENKINS-26757) Error cloning remote repo 'origin' with username:passw...@bitbucket.org URLs

2015-02-04 Thread flavio.do...@gmx.ch (JIRA)














































Flavio Donzé
 commented on  JENKINS-26757


Error cloning remote repo origin with username:passw...@bitbucket.org URLs















As I stated in the bug I need to use this URL syntax, because of certain post build processors.

I tried the ssh URL and JGit, this are my test results:

Using JGit and https://
Failed to connect to repository : org.eclipse.jgit.errors.TransportException: https://usern...@bitbucket.org/user/repository.git: not authorized

Using JGit and git://
Failed to connect to repository : org.eclipse.jgit.errors.NotSupportedException: URI not supported: git://usern...@bitbucket.org/user/repository.git

Using JGit and ssh://
No error message, but the build runs in a endless loop.

Using Git command line and ssh://
Failed to connect to repository : Command "C:/Progra~2/Git/bin/git.exe -c core.askpass=true ls-remote -h ssh://usern...@bitbucket.org/user/repository.gitHEAD" returned status code 128:
stdout: 
stderr: Unable to open connection: 
Host does not existfatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-client-plugin] (JENKINS-26757) Error cloning remote repo 'origin' with username:passw...@bitbucket.org URLs

2015-02-03 Thread flavio.do...@gmx.ch (JIRA)














































Flavio Donzé
 created  JENKINS-26757


Error cloning remote repo origin with username:passw...@bitbucket.org URLs















Issue Type:


Bug



Assignee:


Nicolas De Loof



Components:


git-client-plugin, git-plugin



Created:


03/Feb/15 3:20 PM



Description:


Using the current version of git-client-plugin 1.15.0 and git-plugin 2.3.4 the cloning of a private bitbucket.org repository does not work.
It used to work with git-client-plugin 1.3.0 and git-plugin 1.5.0.

I created a new "Free Style" job, entering only a Git SCM with https://username:passw...@bitbucket.org/user/repository.git as "Repository URL" leaving everything else as default.
I'm aware of the credentials functionality, but I need to use https://username:passw...@bitbucket.org/user/repository.git URL syntax, for otherwise certain post build steps will not work.

This is the output I get:

Started by user Flavio Donzé
Building in workspace C:\data\jenkins\workspace\workspace\git_test
Cloning the remote Git repository
Cloning repository https://username:passw...@bitbucket.org/user/repository.git
  C:/Progra~2/Git/bin/git.exe init C:\data\jenkins\workspace\workspace\git_test # timeout=10
Fetching upstream changes from https://usern...@bitbucket.org/user/repository.git
  C:/Progra~2/Git/bin/git.exe --version # timeout=10
  C:/Progra~2/Git/bin/git.exe -c core.askpass=true fetch --tags --progress https://usern...@bitbucket.org/user/repository.git +refs/heads/:refs/remotes/origin/
ERROR: Error cloning remote repo 'origin'
ERROR: Error cloning remote repo 'origin'
Finished: FAILURE




Environment:


Jenkins 1.598

Git 1.9.5.msysgit.0




Project:


Jenkins



Priority:


Critical



Reporter:


Flavio Donzé

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git] (JENKINS-24368) Authentication failed for https://usern...@bitbucket.org/project/repository.git

2014-08-21 Thread flavio.do...@gmx.ch (JIRA)














































Flavio Donzé
 created  JENKINS-24368


Authentication failed for https://usern...@bitbucket.org/project/repository.git















Issue Type:


Bug



Affects Versions:


current



Assignee:


Nicolas De Loof



Components:


git, git-client



Created:


21/Aug/14 12:20 PM



Description:


Getting the following error after updating
GIT plugin: 1.5.0  2.2.5
GIT client plugin: 1.3.0  1.10.1

ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "C:/Progra~2/Git/bin/git.exe fetch --tags --progress https://usern...@bitbucket.org/project/repository.git +refs/heads/:refs/remotes/origin/" returned status code 128:
stdout: 
stderr: fatal: Authentication failed for 'https://usern...@bitbucket.org/project/repository.git/'

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:422)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:857)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:890)
	at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:118)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1255)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
	at hudson.model.Run.execute(Run.java:1740)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:233)




Project:


Jenkins



Priority:


Major



Reporter:


Flavio Donzé

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git] (JENKINS-24368) Authentication failed for https://usern...@bitbucket.org/project/repository.git

2014-08-21 Thread flavio.do...@gmx.ch (JIRA)














































Flavio Donzé
 commented on  JENKINS-24368


Authentication failed for https://usern...@bitbucket.org/project/repository.git















Thanks for this workaround, but I need to use the username@host syntax.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git] (JENKINS-22706) git fetching fails after switching from HTTPS to SSH

2014-04-23 Thread flavio.do...@gmx.ch (JIRA)














































Flavio Donzé
 commented on  JENKINS-22706


git fetching fails after switching from HTTPS to SSH















Hi Mark, 
The password is not part of the URL, I made a mistake the URL does not contain the username but the user who created the repository on bitbucket.
So there is no login data in the URL. g...@bitbucket.org:hosteduser/repository.git

What confuses me, git fetching works using HTTPS (having a defined jenkins credentials) and when using SSH "'C:\Program' is not recognized" is thrown.

I switched the environment variables to GIT_HOME=C:\Progra~2\Git\bin or GIT_SSH=C:\Progra~1\TortoiseGit\bin\TortoisePlink.exe
But it seems that some other variable is used and I can not find it. 



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git] (JENKINS-22706) git fetching fails after switching from HTTPS to SSH

2014-04-23 Thread flavio.do...@gmx.ch (JIRA)














































Flavio Donzé
 updated  JENKINS-22706


git fetching fails after switching from HTTPS to SSH
















Couldn't find anything git related in the config.xml, found the hudson.plugins.git.GitTool.xml though. Is this what you are asking for?

Trying to fix the issue on my own I already had changed the configuration to "C:/Progra~2/Git/bin/git.exe" in the jenkins admin area.





Change By:


Flavio Donzé
(23/Apr/14 1:25 PM)




Attachment:


hudson.plugins.git.GitTool.xml



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git] (JENKINS-22706) git fetching fails after switching from HTTPS to SSH

2014-04-23 Thread flavio.do...@gmx.ch (JIRA)














































Flavio Donzé
 updated  JENKINS-22706


git fetching fails after switching from HTTPS to SSH
















This is my configuration.





Change By:


Flavio Donzé
(23/Apr/14 2:53 PM)




Attachment:


Configuration.PNG



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git] (JENKINS-22706) SSH

2014-04-22 Thread flavio.do...@gmx.ch (JIRA)














































Flavio Donzé
 created  JENKINS-22706


SSH















Issue Type:


Bug



Assignee:


Nicolas De Loof



Components:


git, git-client



Created:


22/Apr/14 7:02 AM



Description:


Trying to switch from HTTPS to SSH. Getting the following exception after switching (changed the link for this post):

Fetching upstream changes from git@server:username/repository.git
using GIT_SSH to set credentials server ssh
FATAL: Failed to fetch from git@server:username/repository.git
hudson.plugins.git.GitException: Failed to fetch from git@server:username/repository.git
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:623)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:855)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:880)
	at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:118)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1251)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:605)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:514)
	at hudson.model.Run.execute(Run.java:1703)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:231)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@server:username/repository.git +refs/heads/master:refs/remotes/origin/master" returned status code 128:
stdout: 
stderr: 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1276)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1146)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:254)
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:621)
	... 11 more




Environment:


git 2.2.1, git-client 1.8.0, windows server 2008 R2 64bit




Project:


Jenkins



Priority:


Major



Reporter:


Flavio Donzé

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git] (JENKINS-22706) git fetching fails after switching from HTTPS to SSH

2014-04-22 Thread flavio.do...@gmx.ch (JIRA)














































Flavio Donzé
 updated  JENKINS-22706


git fetching fails after switching from HTTPS to SSH
















Change By:


Flavio Donzé
(22/Apr/14 7:03 AM)




Summary:


gitfetchingfailsafterswitchingfromHTTPSto
SSH



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.