Re: ssh-agent : FATAL: Could not find a suitable ssh-agent provider

2015-05-12 Thread marcus . semblano
Hi guys!

We are facing the same problem here and  would like to ask for some help...
We are trying to set up a master/slave environmet using Amazon ec2 Plugin 
(https://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Plugin)

Here is the build log:

Started by user anonymous
Building in workspace /var/lib/jenkins/workspace/project-name
[ssh-agent] Using credentials project-jenkins (GitHub account)
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent]   Java/JNR ssh-agent
[ssh-agent] FATAL: Could not find a suitable ssh-agent provider
[ssh-agent] Diagnostic report
[ssh-agent] * Java/JNR ssh-agent
[ssh-agent] java.lang.NoClassDefFoundError: 
jnr/unixsocket/UnixSocketAddress
[ssh-agent] at 
com.cloudbees.jenkins.plugins.sshagent.jna.JNRRemoteAgent.(JNRRemoteAgent.java:63)
[ssh-agent] at 
com.cloudbees.jenkins.plugins.sshagent.jna.JNRRemoteAgentStarter.call(JNRRemoteAgentStarter.java:54)
[ssh-agent] at 
com.cloudbees.jenkins.plugins.sshagent.jna.JNRRemoteAgentStarter.call(JNRRemoteAgentStarter.java:35)
[ssh-agent] at 
hudson.remoting.LocalChannel.call(LocalChannel.java:45)
[ssh-agent] at 
com.cloudbees.jenkins.plugins.sshagent.jna.JNRRemoteAgentFactory.start(JNRRemoteAgentFactory.java:61)
[ssh-agent] at 
com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper$SSHAgentEnvironment.(SSHAgentBuildWrapper.java:314)
[ssh-agent] at 
com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.createSSHAgentEnvironment(SSHAgentBuildWrapper.java:224)
[ssh-agent] at 
com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.preCheckout(SSHAgentBuildWrapper.java:189)
[ssh-agent] at 
jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:76)
[ssh-agent] at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531)
[ssh-agent] at hudson.model.Run.execute(Run.java:1744)
[ssh-agent] at 
hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
[ssh-agent] at 
hudson.model.ResourceController.execute(ResourceController.java:98)
[ssh-agent] at hudson.model.Executor.run(Executor.java:374)
[ssh-agent] Caused by: java.lang.ClassNotFoundException: 
jnr.unixsocket.UnixSocketAddress
[ssh-agent] at 
hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:694)
[ssh-agent] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[ssh-agent] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[ssh-agent] at 
org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1387)
[ssh-agent] at 
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1080)
[ssh-agent] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[ssh-agent] ... 14 more
FATAL: [ssh-agent] Unable to start agent
hudson.util.IOException2: [ssh-agent] Unable to start agent
at 
com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.createSSHAgentEnvironment(SSHAgentBuildWrapper.java:231)
at 
com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.preCheckout(SSHAgentBuildWrapper.java:189)
at 
jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:76)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531)
at hudson.model.Run.execute(Run.java:1744)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:374)
Caused by: java.lang.RuntimeException: [ssh-agent] Could not find a 
suitable ssh-agent provider.
at 
com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper$SSHAgentEnvironment.(SSHAgentBuildWrapper.java:332)
at 
com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.createSSHAgentEnvironment(SSHAgentBuildWrapper.java:224)
... 7 more
Finished: FAILURE

Thanks!

Marcus

Em segunda-feira, 20 de janeiro de 2014 07:15:24 UTC-2, Stephen Connolly 
escreveu:
>
> you most likely will have to set up the  Apache Tomcat Native libraries 
>  on the build slave. see the 
> plugin's wiki page for more details.
>
>
> On 20 January 2014 09:07, Kevin Zhou > 
> wrote:
>
>> I got stuck on setup ssh access in jenkins, I have ssh-agent plugin 
>> installed. And got following in the log : 
>>
>> I am running with : 
>> CentOS release 6.3
>> Jenkins ver. 1.547 
>> SSH Agent Plugin 
>>   1.4.1 
>> 
>>
>>
>> [ssh-agent] Using credentials pkg
>> [ssh-agent] Looking for ssh-agent implementation...
>> [ssh-agent]   Java/JNR ssh-agent
>> [ssh-agent] FATAL: Could not find a suitable ssh-agent provider
>> [ssh-agent] Diagnostic report
>> [ssh-agent] * Java/JNR ssh-agent
>> [ssh-agent] java.lang.NoClass

Re: Two jobs that never shall build if the other one builds

2015-05-21 Thread Marcus Semblano
Would Locks and Latches (
https://wiki.jenkins-ci.org/display/JENKINS/Locks+and+Latches+plugin) work
for you?

Marcus Semblano


On Thu, May 21, 2015 at 12:56 PM, Baptiste Mathus  wrote:

>
> Le 21 mai 2015 8:59 AM, "tps800"  a écrit :
> >
> > On Tuesday, May 19, 2015 at 5:58:12 PM UTC+2, Baptiste Mathus wrote:
> >>
> >> Better use the throttle concurrent build plugin IMO. Works fine for us:
> >>
> >> Define a central token. Then configure both job to "acquire" it when
> starting. Done. Both jobs won't run at the same time.
> >
> > This plugin isn't as easy to handle (you've to create a central token)
>
> Yes that's indeed the only impediment we have identified with this plugin:
> requiring to be admin to create a token is overkill.
>
> We (software factory admins) would like to propose an improvement PR about
> this, but not top priority at the moment...
>
> Cheers
> -- Baptiste
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5hiPi19bz-Dcj53uoSMT%3DQe8nUSEaQ5bwBeQLkTY782w%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5hiPi19bz-Dcj53uoSMT%3DQe8nUSEaQ5bwBeQLkTY782w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CADROnO9k9gHky2TxcJR%2BxbcRRZCjNetahxdfDWtjJa7rqg6DDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.