[JIRA] (JENKINS-54354) Jenkins Window slave can not fetch from bitbucket

2018-11-02 Thread xavier.fust...@clarivate.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Xavier Fustero commented on  JENKINS-54354  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Jenkins Window slave can not fetch from bitbucket   
 

  
 
 
 
 

 
 If anyone has the same problem try using jgit instead. Without changing anything on the Windows slave it worked.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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] (JENKINS-54354) Jenkins Window slave can not fetch from bitbucket

2018-11-02 Thread xavier.fust...@clarivate.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Xavier Fustero edited a comment on  JENKINS-54354  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Jenkins Window slave can not fetch from bitbucket   
 

  
 
 
 
 

 
 I have checked the swarm process and it runs under SYSTEM user in windows. This user refers toC:\Windows\System32\config\systemprofile\I have created the .ssh directory under above dir and copied the private key. I go to Jenkins job and remove Git from *Source Code Management* and add creating "Execute Windows Batch command" in in Build section. I put the following command there:git clone ssh://git@ git XXX . clarivate.io/ls-editorial/ls-jpharm-gui-qa-tests-acceptance. gitThis worked and cloned the repo under my worksapce D:\workspaces\SYS-TEST successfullyHowever, when using the Source Code Management I get the error from the description. Mark, I reopen it to see if you can take a look again and explain why it works one way but not the other way.Thanks  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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] (JENKINS-54354) Jenkins Window slave can not fetch from bitbucket

2018-11-02 Thread xavier.fust...@clarivate.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Xavier Fustero updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54354  
 
 
  Jenkins Window slave can not fetch from bitbucket   
 

  
 
 
 
 

 
Change By: 
 Xavier Fustero  
 

  
 
 
 
 

 
 I have a Jenkins Master running on a linux box. Several jobs clone repos from Bitbucket but I have a Windows slave which fails with the following error:{noformat}Building remotely on slavewin-WIN-9G6KGDM45N7-7b265e7f (swarm slavewin) in workspace D:\workspace\SYS-TEST > C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > C:\Program Files\Git\bin\git.exe config remote.origin.url ssh://git@ git XXX . clarivate.io/ls-editorial/ls-jpharm-gui-qa-tests-acceptance. git # timeout=10Fetching upstream changes from ssh://git@git. clarivate XXX . io/ls-editorial/ls-jpharm-gui-qa-tests-acceptance. git > C:\Program Files\Git\bin\git.exe --version # timeout=10using GIT_SSH to set credentials rsa / deploy keys > C:\Program Files\Git\bin\git.exe fetch --tags --progress ssh://git@ git XXX . clarivate.io/ls-editorial/ls-jpharm-gui-qa-tests-acceptance. git +refs/heads/*:refs/remotes/origin/*ERROR: Error fetching remote repo 'origin'hudson.plugins.git.GitException: Failed to fetch from ssh://git@ git XXX . clarivate.io/ls-editorial/ls-jpharm-gui-qa-tests-acceptance. git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:888) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1155) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186) at hudson.scm.SCM.checkout(SCM.java:504) at hudson.model.AbstractProject.checkout(AbstractProject.java:1208) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1819) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe fetch --tags --progress ssh://git@ git XXX . clarivate.io/ls-editorial/ls-jpharm-gui-qa-tests-acceptance. git +refs/heads/*:refs/remotes/origin/*" returned status code 128:stdout: stderr: /c: /c: Is a directoryfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.{noformat}  The job is configured passing the credential.On the Windows side I have installed git-bash:{noformat} $ git --versiongit version 2.19.1.windows.1{noformat}and set these environment variables:{noformat}GIT_SSH=C:\Program Files\Git\usr\bin\ssh.exePath=blablabla:C:\Program Files\Git\cmd{noformat}If I add the private key in users home/.ssh and type git commands to clone, fetch,etc on the Windows it works. However, when launching the Jenkins job from Master UI it return above error. From Jenkins Master I have this:{noformat}-bash-4.2$ git --versiongit version 2.18.0and 

[JIRA] (JENKINS-54354) Jenkins Window slave can not fetch from bitbucket

2018-11-02 Thread xavier.fust...@clarivate.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Xavier Fustero edited a comment on  JENKINS-54354  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Jenkins Window slave can not fetch from bitbucket   
 

  
 
 
 
 

 
 Hi [~markewaite], thanks for looking at it. I looked for an answer to the mailing list first but I couldn't find an answer. Similar problems but different.  I have removed the GIT_SSH from Windows but getting the same error. I set it as I saw the Jenkins Job said:{noformat} Fetching upstream changes from ssh://git@ git XXX . clarivate.io/ls-editorial/ls-jpharm-gui-qa-tests-acceptance. git > C:\Program Files\Git\bin\git.exe --version # timeout=10 using GIT_SSH to set credentials rsa / deploy keys{noformat}and probably I read someone suggesting to set it in Windows to that value.I see you close it but just wanted to note I am using Jenkins 2.138.2 in case someone else is reading it.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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] (JENKINS-54354) Jenkins Window slave can not fetch from bitbucket

2018-10-31 Thread xavier.fust...@clarivate.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Xavier Fustero reopened an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54354  
 
 
  Jenkins Window slave can not fetch from bitbucket   
 

  
 
 
 
 

 
Change By: 
 Xavier Fustero  
 
 
Resolution: 
 Not A Defect  
 
 
Status: 
 Closed Reopened  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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] (JENKINS-54354) Jenkins Window slave can not fetch from bitbucket

2018-10-31 Thread xavier.fust...@clarivate.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Xavier Fustero edited a comment on  JENKINS-54354  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Jenkins Window slave can not fetch from bitbucket   
 

  
 
 
 
 

 
 I have checked the swarm process and it runs under SYSTEM user in windows. This user refers toC:\Windows\System32\config\systemprofile\I have created the .ssh directory under above dir and copied the private key. I go to Jenkins job and remove Git from *Source Code Management* and add creating "Execute Windows Batch command" in in Build section. I put the following command there:git clone ssh://g...@git.clarivate.io/ls-editorial/ls-jpharm-gui-qa-tests-acceptance.gitThis worked and cloned the repo under my worksapce D:\workspaces\SYS-TEST successfullyHowever, when using the Source Code Management I get the error from the description.  Mark, I reopen it to see if you can take a look again and explain why it works one way but not the other way.Thanks  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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] (JENKINS-54354) Jenkins Window slave can not fetch from bitbucket

2018-10-31 Thread xavier.fust...@clarivate.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Xavier Fustero commented on  JENKINS-54354  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Jenkins Window slave can not fetch from bitbucket   
 

  
 
 
 
 

 
 I have checked the swarm process and it runs under SYSTEM user in windows. This user refers to C:\Windows\System32\config\systemprofile\ I have created the .ssh directory under above dir and copied the private key. I go to Jenkins job and remove Git from Source Code Management and add creating "Execute Windows Batch command" in in Build section. I put the following command there: git clone ssh://g...@git.clarivate.io/ls-editorial/ls-jpharm-gui-qa-tests-acceptance.git This worked and cloned the repo under my worksapce D:\workspaces\SYS-TEST successfully However, when using the Source Code Management I get the error from the description.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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] (JENKINS-54354) Jenkins Window slave can not fetch from bitbucket

2018-10-31 Thread xavier.fust...@clarivate.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Xavier Fustero commented on  JENKINS-54354  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Jenkins Window slave can not fetch from bitbucket   
 

  
 
 
 
 

 
 Hi Mark Waite,   thanks for looking at it. I looked for an answer to the mailing list first but I couldn't find an answer. Similar problems but different.  I have removed the GIT_SSH from Windows but getting the same error. I set it as I saw the Jenkins Job said: 

 
 Fetching upstream changes from ssh://g...@git.clarivate.io/ls-editorial/ls-jpharm-gui-qa-tests-acceptance.git
 > C:\Program Files\Git\bin\git.exe --version # timeout=10
 using GIT_SSH to set credentials rsa / deploy keys 

 and probably I read someone suggesting to set it in Windows to that value. I see you close it but just wanted to note I am using Jenkins 2.138.2 in case someone else is reading it.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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] (JENKINS-54354) Jenkins Window slave can not fetch from bitbucket

2018-10-30 Thread xavier.fust...@clarivate.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Xavier Fustero created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54354  
 
 
  Jenkins Window slave can not fetch from bitbucket   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Mark Waite  
 
 
Components: 
 git-plugin  
 
 
Created: 
 2018-10-30 16:25  
 
 
Environment: 
 Jenkins Slave on a Window Server 2008 R2, Service Pack1. 64-bit.  
 
 
Labels: 
 jenkins windows slave  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Xavier Fustero  
 

  
 
 
 
 

 
 I have a Jenkins Master running on a linux box. Several jobs clone repos from Bitbucket but I have a Windows slave which fails with the following error: 

 
Building remotely on slavewin-WIN-9G6KGDM45N7-7b265e7f (swarm slavewin) in workspace D:\workspace\SYS-TEST
 > C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > C:\Program Files\Git\bin\git.exe config remote.origin.url ssh://g...@git.clarivate.io/ls-editorial/ls-jpharm-gui-qa-tests-acceptance.git # timeout=10
Fetching upstream changes from ssh://g...@git.clarivate.io/ls-editorial/ls-jpharm-gui-qa-tests-acceptance.git
 > C:\Program Files\Git\bin\git.exe --version # timeout=10
using GIT_SSH to set credentials rsa / deploy keys
 > C:\Program Files\Git\bin\git.exe fetch --tags --progress ssh://g...@git.clarivate.io/ls-editorial/ls-jpharm-gui-qa-tests-acceptance.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from