[JIRA] (JENKINS-54114) Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?

2018-10-25 Thread kuisathave...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ivan Fernandez Calvo updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54114  
 
 
  Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?   
 

  
 
 
 
 

 
Change By: 
 Ivan Fernandez Calvo  
 
 
Component/s: 
 ssh-slaves-plugin  
 

  
 
 
 
 

 
 
 

 
 
 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-54114) Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?

2018-10-19 Thread kuisathave...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ivan Fernandez Calvo commented on  JENKINS-54114  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?   
 

  
 
 
 
 

 
 This message comes from the OS, so maybe ssh-agent is not in the path. 

 

Cannot run program "ssh-agent": CreateProcess error=2, The system cannot find the file specified
 

 Also, keep in mind that ssh-agent should run per user session, so should be started when Jenkins do login on the agent (~/.bashrc usually) see https://unix.stackexchange.com/questions/72552/whats-the-purpose-of-ssh-agent 

I'm using latest jenkins server on windows, I tried all the solutions available for similar kind of problems but none of them worked out, How can I fix this ? ssh-agent is running in back ground 
if ps -p $SSH_AGENT_PID > /dev/null > then > echo "ssh-agent is already running" > # Do something knowing the pid exists, i.e. the process with $PID is running > else > eval ssh-agent -s > fi ssh-agent is already running
  
 

  
 
 
 
 

 
 
 

 
 
 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-54114) Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?

2018-10-19 Thread kuisathave...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ivan Fernandez Calvo commented on  JENKINS-54114  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?   
 

  
 
 
 
 

 
 Yep, you need it https://issues.jenkins-ci.org/browse/JENKINS-36997 https://github.com/jenkinsci/ssh-agent-plugin/pull/17 https://github.com/janvrany/ssh-agent-plugin/blob/9b7c44a95f88dd284f90eb49c7420baa54f46895/src/main/java/com/cloudbees/jenkins/plugins/sshagent/exec/ExecRemoteAgentFactory.java#L58-L76  
 

  
 
 
 
 

 
 
 

 
 
 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-54114) Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?

2018-10-19 Thread kuisathave...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ivan Fernandez Calvo commented on  JENKINS-54114  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?   
 

  
 
 
 
 

 
 IIRC ssh-agent plugin uses the ssh-agent local native implementation since some versions ago, you must install the ssh-agent package in the OS.  
 

  
 
 
 
 

 
 
 

 
 
 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-54114) Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?

2018-10-19 Thread dnusb...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Devin Nusbaum commented on  JENKINS-54114  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?   
 

  
 
 
 
 

 
 deepinside 14 Is the ssh-agent program installed on your build agent? What kind of build agent and shell are you running? Did this work for you previously, or is this the first time you are trying it? I am not sure why I am the default assignee here, as I am not very familiar with the plugins involved. CC Ivan Fernandez Calvo who may have a better idea of what to look at.  
 

  
 
 
 
 

 
 
 

 
 
 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-54114) Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?

2018-10-19 Thread dnusb...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Devin Nusbaum assigned an issue to Unassigned  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54114  
 
 
  Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?   
 

  
 
 
 
 

 
Change By: 
 Devin Nusbaum  
 
 
Assignee: 
 Devin Nusbaum  
 

  
 
 
 
 

 
 
 

 
 
 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-54114) Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?

2018-10-16 Thread deepinsid...@yahoo.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 deepinside 14 created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54114  
 
 
  Why am I getting an error as couldn't find ssh agent even though the ssh agent is ruining in Jenkins?   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Devin Nusbaum  
 
 
Components: 
 ssh-agent-plugin, ssh-credentials-plugin, ssh-slaves-plugin  
 
 
Created: 
 2018-10-17 02:01  
 
 
Environment: 
 windows10 running latest Jenkins  
 
 
Priority: 
  Major  
 
 
Reporter: 
 deepinside 14  
 

  
 
 
 
 

 
 I'm using Jenkins pipeline CI. I'm using ssh-agent to push the build app to git but when I run the job I get build failure as   {{[Pipeline] { (push to git) [Pipeline] sshagent [ssh-agent] Using credentials OABLN709$ [ssh-agent] Looking for ssh-agent implementation... Could not find ssh-agent: IOException: Cannot run program "ssh-agent": CreateProcess error=2, The system cannot find the file specified Check if ssh-agent is installed and in PATH [ssh-agent] FATAL: Could not find a suitable ssh-agent provider [ssh-agent] Diagnostic report [Pipeline] // sshagent [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline java.lang.RuntimeException: [ssh-agent] Could not find a suitable ssh-agent provider. at com.cloudbees.jenkins.plugins.sshagent.SSHAgentStepExecution.initRemoteAgent(SSHAgentStepExecution.java:175) at com.cloudbees.jenkins.plugins.sshagent.SSHAgentStepExecution.start(SSHAgentStepExecution.java:63) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:270) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:180) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at sun.reflect.GeneratedMethodAccessor2538.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source)