Re: Slave job successful but throwing error

2014-10-01 Thread Douglas Ferguson
I upgraded all plugins and upgraded jenkins and the problem went away...

On Tuesday, September 30, 2014 6:25:51 PM UTC-5, Douglas Ferguson wrote:
>
> I just setup a slave node for a specific job. The job executes 
> successfully and even archives artifacts.
>
> Then it throws an exception and marks the build as failure.
>
> Completed build, now archiving <-- printed out as the last step in my job
>
> FATAL: Remote call on ops-1-jenkins-android-10-186.fam.io 
> failedjava.io.IOException 
> : Remote 
> call on ops-1-jenkins-android-10-186.fam.io failed
>   at hudson.remoting.Channel.call(Channel.java:748) 
> 
>   at hudson.Launcher$RemoteLauncher.kill(Launcher.java:940) 
> 
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:556) 
> 
>   at hudson.model.Run.execute(Run.java:1745) 
> 
>   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
> 
>   at hudson.model.ResourceController.execute(ResourceController.java:89) 
> 
>   at hudson.model.Executor.run(Executor.java:240) 
> 
> Caused by: java.lang.NoClassDefFoundError 
> :
>  Could not initialize class hudson.slaves.SlaveComputer
>   at hudson.util.ProcessTree.getKillers(ProcessTree.java:151) 
> 
>   at hudson.util.ProcessTree$OSProcess.killByKiller(ProcessTree.java:212) 
> 
>   at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:557) 
> 
>   at 
> hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:564) 
> 
>   at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:488) 
> 
>   at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:952) 
> 
>   at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:943) 
> 
>   at hudson.remoting.UserRequest.perform(UserRequest.java:118) 
> 
>   at hudson.remoting.UserRequest.perform(UserRequest.java:48) 
> 
>   at hudson.remoting.Request$2.run(Request.java:328) 
> 
>   at 
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>  
> 
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 
> 
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166) 
> 
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
>  
> 
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>  
> 
>   at hudson.remoting.Engine$1$1.run(Engine.java:63) 
> 
>   at java.lang.Thread.run(Thread.java:701) 
> 

Slave Setup Plugin -- does it copy everything every time?

2014-10-01 Thread Roland Asmann
Hi all,

I just stumbled across the Slave Setup Plugin and I was wondering: does 
this plugin copy configured files every time a slave is started or does it 
check if the files are already on the target-system? I admit that I haven't 
installed the plugin, so I can"t test myself, but I was hoping to add it to 
our cluster soon.

The thing is though, that some of our slaves are geographically further 
away from the master and the connection to them can be very slow. I don't 
mind if the initial copy takes some (or a lot) of time, but if any 
unnecessary copying is done, it would slow everything down way too much.

Also, I would like to know what is meant with the description for the 
pre-launch script: "This can be used to start the slave machine"? Doesn't 
Jenkins start the slave?

I am thankful for any info.

Roland

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Problem launching ssh slave

2014-10-01 Thread Jay Reslock
It is an ec2 instance /mnt is mounted on /dev/xvdb.  I can launch if I
change the remote FS root to the user's home directory (which has the same
permissions).

On Wed, Oct 1, 2014 at 9:37 AM, Maureen Barger  wrote:

> When I see this
>
> Could not copy slave.jar into '/mnt/jenkins' on slave
>
> it makes me think you have this on an NFS share. If so, check how this is
> mounted to make sure the user have RW permissions there.
>
>
> On Wed, Oct 1, 2014 at 9:09 AM, Jay Reslock  wrote:
>
>> I have permissions set to 777 on the directory.  Further, the log reports
>> that the directory does not exist but it is there.
>>
>> On Wed, Oct 1, 2014 at 6:36 AM, Jason Stanley 
>> wrote:
>>
>>> Open up the permissions on the slave.
>>>
>>>
>>>
>>> Caused by: com.trilead.ssh2.SFTPException: Permission denied 
>>> (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to 
>>> perform the operation.)
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *From:* Jason Reslock [mailto:jresl...@gmail.com]
>>> *Sent:* Tuesday, September 30, 2014 5:23 PM
>>> *To:* jenkinsci-users@googlegroups.com
>>> *Subject:* Problem launching ssh slave
>>>
>>>
>>>
>>> I'm having trouble launching an ssh slave and I am hoping someone can
>>> help me out.
>>>
>>>
>>>
>>> I have a slave configured which fails to launch due to a permission
>>> error.  I will paste the error below.
>>>
>>>
>>>
>>> So far I have verified that I am able to ssh and scp to the slave
>>> machine from the jenkins master as the user making the call with the
>>> correct key.  It appears that jenkins is also able to get that far and then
>>> fails creating a directory.  I am able to scp files to that directory as
>>> the same user.  How does this plugin copy the slave jar?  I looked at the
>>> sftpClient code and I don't quite understand what is happening.  Does the
>>> master ssh to the slave and then launch an sftp request to itself to write
>>> the file?
>>>
>>>
>>>
>>> Here is the exception:
>>>
>>>
>>>
>>> [09/30/14 21:06:06] [SSH] Checking java version of java
>>>
>>> [09/30/14 21:06:06] [SSH] java -version returned 1.7.0_67.
>>>
>>> [09/30/14 21:06:06] [SSH] Starting sftp client.
>>>
>>> [09/30/14 21:06:06] [SSH] Remote file system root /mnt/jenkins does not 
>>> exist. Will try to create it...
>>>
>>> hudson.util.IOException2: Could not copy slave.jar into '/mnt/jenkins' on 
>>> slave
>>>
>>>   at 
>>> hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:921)
>>>
>>>   at 
>>> hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:596)
>>>
>>>   at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:232)
>>>
>>>   at 
>>> jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
>>>
>>>   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>
>>>   at 
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>
>>>   at 
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>
>>>   at java.lang.Thread.run(Thread.java:745)
>>>
>>> Caused by: hudson.util.IOException2: Failed to mkdir /mnt/jenkins
>>>
>>>   at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:85)
>>>
>>>   at 
>>> hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:893)
>>>
>>>   ... 7 more
>>>
>>> Caused by: com.trilead.ssh2.SFTPException: Permission denied 
>>> (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to 
>>> perform the operation.)
>>>
>>>   at 
>>> com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:555)
>>>
>>>   at com.trilead.ssh2.SFTPv3Client.mkdir(SFTPv3Client.java:955)
>>>
>>>   at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:83)
>>>
>>>   ... 8 more
>>>
>>> [09/30/14 21:06:06] [SSH] Connection closed.
>>>
>>> --
>>> 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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Jenkins Users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/jenkinsci-users/yU3vbMVik5E/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> jenkinsci-users+unsubscr...@googlegroups.com.
>>> 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.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 

Re: Problem launching ssh slave

2014-10-01 Thread Maureen Barger
When I see this

Could not copy slave.jar into '/mnt/jenkins' on slave

it makes me think you have this on an NFS share. If so, check how this is
mounted to make sure the user have RW permissions there.

On Wed, Oct 1, 2014 at 9:09 AM, Jay Reslock  wrote:

> I have permissions set to 777 on the directory.  Further, the log reports
> that the directory does not exist but it is there.
>
> On Wed, Oct 1, 2014 at 6:36 AM, Jason Stanley 
> wrote:
>
>> Open up the permissions on the slave.
>>
>>
>>
>> Caused by: com.trilead.ssh2.SFTPException: Permission denied 
>> (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to 
>> perform the operation.)
>>
>>
>>
>>
>>
>>
>>
>> *From:* Jason Reslock [mailto:jresl...@gmail.com]
>> *Sent:* Tuesday, September 30, 2014 5:23 PM
>> *To:* jenkinsci-users@googlegroups.com
>> *Subject:* Problem launching ssh slave
>>
>>
>>
>> I'm having trouble launching an ssh slave and I am hoping someone can
>> help me out.
>>
>>
>>
>> I have a slave configured which fails to launch due to a permission
>> error.  I will paste the error below.
>>
>>
>>
>> So far I have verified that I am able to ssh and scp to the slave machine
>> from the jenkins master as the user making the call with the correct key.
>> It appears that jenkins is also able to get that far and then fails
>> creating a directory.  I am able to scp files to that directory as the same
>> user.  How does this plugin copy the slave jar?  I looked at the sftpClient
>> code and I don't quite understand what is happening.  Does the master ssh
>> to the slave and then launch an sftp request to itself to write the file?
>>
>>
>>
>> Here is the exception:
>>
>>
>>
>> [09/30/14 21:06:06] [SSH] Checking java version of java
>>
>> [09/30/14 21:06:06] [SSH] java -version returned 1.7.0_67.
>>
>> [09/30/14 21:06:06] [SSH] Starting sftp client.
>>
>> [09/30/14 21:06:06] [SSH] Remote file system root /mnt/jenkins does not 
>> exist. Will try to create it...
>>
>> hudson.util.IOException2: Could not copy slave.jar into '/mnt/jenkins' on 
>> slave
>>
>>   at 
>> hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:921)
>>
>>   at 
>> hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:596)
>>
>>   at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:232)
>>
>>   at 
>> jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
>>
>>   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>
>>   at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>
>>   at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>
>>   at java.lang.Thread.run(Thread.java:745)
>>
>> Caused by: hudson.util.IOException2: Failed to mkdir /mnt/jenkins
>>
>>   at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:85)
>>
>>   at 
>> hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:893)
>>
>>   ... 7 more
>>
>> Caused by: com.trilead.ssh2.SFTPException: Permission denied 
>> (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to 
>> perform the operation.)
>>
>>   at 
>> com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:555)
>>
>>   at com.trilead.ssh2.SFTPv3Client.mkdir(SFTPv3Client.java:955)
>>
>>   at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:83)
>>
>>   ... 8 more
>>
>> [09/30/14 21:06:06] [SSH] Connection closed.
>>
>> --
>> 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.
>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/jenkinsci-users/yU3vbMVik5E/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> jenkinsci-users+unsubscr...@googlegroups.com.
>> 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.
> 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.
For more options, visit https://groups.google.com/d/optout.


Re: Problem launching ssh slave

2014-10-01 Thread Jay Reslock
I have permissions set to 777 on the directory.  Further, the log reports
that the directory does not exist but it is there.

On Wed, Oct 1, 2014 at 6:36 AM, Jason Stanley 
wrote:

> Open up the permissions on the slave.
>
>
>
> Caused by: com.trilead.ssh2.SFTPException: Permission denied 
> (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to 
> perform the operation.)
>
>
>
>
>
>
>
> *From:* Jason Reslock [mailto:jresl...@gmail.com]
> *Sent:* Tuesday, September 30, 2014 5:23 PM
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Problem launching ssh slave
>
>
>
> I'm having trouble launching an ssh slave and I am hoping someone can help
> me out.
>
>
>
> I have a slave configured which fails to launch due to a permission
> error.  I will paste the error below.
>
>
>
> So far I have verified that I am able to ssh and scp to the slave machine
> from the jenkins master as the user making the call with the correct key.
> It appears that jenkins is also able to get that far and then fails
> creating a directory.  I am able to scp files to that directory as the same
> user.  How does this plugin copy the slave jar?  I looked at the sftpClient
> code and I don't quite understand what is happening.  Does the master ssh
> to the slave and then launch an sftp request to itself to write the file?
>
>
>
> Here is the exception:
>
>
>
> [09/30/14 21:06:06] [SSH] Checking java version of java
>
> [09/30/14 21:06:06] [SSH] java -version returned 1.7.0_67.
>
> [09/30/14 21:06:06] [SSH] Starting sftp client.
>
> [09/30/14 21:06:06] [SSH] Remote file system root /mnt/jenkins does not 
> exist. Will try to create it...
>
> hudson.util.IOException2: Could not copy slave.jar into '/mnt/jenkins' on 
> slave
>
>   at 
> hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:921)
>
>   at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:596)
>
>   at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:232)
>
>   at 
> jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
>
>   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>
>   at java.lang.Thread.run(Thread.java:745)
>
> Caused by: hudson.util.IOException2: Failed to mkdir /mnt/jenkins
>
>   at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:85)
>
>   at 
> hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:893)
>
>   ... 7 more
>
> Caused by: com.trilead.ssh2.SFTPException: Permission denied 
> (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to 
> perform the operation.)
>
>   at 
> com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:555)
>
>   at com.trilead.ssh2.SFTPv3Client.mkdir(SFTPv3Client.java:955)
>
>   at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:83)
>
>   ... 8 more
>
> [09/30/14 21:06:06] [SSH] Connection closed.
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/yU3vbMVik5E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> 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.
For more options, visit https://groups.google.com/d/optout.


Re: Build step 'Invoke Ant' marked build as failure

2014-10-01 Thread Cesar Medeiros
Sim é possível, pois existe vários plugins de integração com o  jenkins.



Em terça-feira, 30 de setembro de 2014 11h23min40s UTC-3, Cesar Medeiros 
escreveu:
>
> *Olá, tenho hum Projeto java Onde Eu Quero executar como fazer analises 
> Código that o sonarqube oferece, porem when Vou Construir Meu ARQUIVO 
> build.xml me deparo com o seguinte Erro.*
>
>
> *sonar*:
>
> [Sonar: sonar] Apache Ant (TM) versão 1.8.2 compilado em 20 de dezembro de 
> 2010 
> [sonar: sonar] SonarQube Ant Task versão: 2.2 
> [sonar: sonar] carregado a partir de: 
> INFO: locale padrão: "en_US", codificação de código fonte: "UTF-8" 
> [sonar: sonar] INFO: diretório de trabalho: / var / lib / Jenkins / trabalhos 
> / GsanTesteJenkins / workspace / GCOM / .sonar
>
> [Sonar: sonar] INFO: SonarQube Servidor 4.4
>
> [Sonar: sonar] 14: 02: 53,745 INFO - Carregar configurações globais 
> [sonar: sonar] 14: 02: 54,021 INFO - cache de usuário: 
> /var/lib/jenkins/.sonar/cache 
> [sonar: sonar] 14:02: 54,029 INFO - Instalar plugins
>
> [Sonar: sonar] 14: 02: 54,753 INFO - Instale o driver JDBC 
> [sonar: sonar] 14: 02: 54,849 WARN - banco de dados H2 deve ser utilizado 
> para fins de avaliação só 
> [sonar: sonar] 14: 02: 54,850 INFO - Criar JDBC fonte de dados para jdbc: h2: 
> tcp: // localhost / sonar
>
> Compilação falhou / var / lib / Jenkins / trabalhos / GsanTesteJenkins / 
> workspace / GCOM / build.xml: 56:. org.sonar.runner.impl RunnerException: Não 
> é possível executar Sonar 
>   . pelo org.sonar.runner.impl . BatchLauncher 1 $ delegateExecution ( 
> BatchLauncher.java: 91) 
>   em org.sonar.runner.impl. BatchLauncher $ 1.run ( BatchLauncher.java: 
> 75) 
>   . pelo java.security AccessController.doPrivileged ( Método nativo) 
>   no org.sonar.runner.impl. BatchLauncher. doExecute ( 
> BatchLauncher.java: 69) 
>   . em org.sonar.runner.api EmbeddedRunner.doExecute ( 
> EmbeddedRunner.java: 102) 
>   em org.sonar.runner.api.Runner. executar (Runner.java: 100) 
>   em org.sonar . .ant.SonarTask launchAnalysis (SonarTask.java: 53) 
>   em org.sonar.ant.SonarTask. executar (SonarTask.java: 48) 
>   em org.apache.tools.ant. UnknownElement.execute ( UnknownElement.java: 
> 291) 
>   a . sun.reflect . NativeMethodAccessorImpl invoke0 (Native Method) 
>   . pelo sun.reflect . NativeMethodAccessorImpl invocar ( 
> NativeMethodAccessorImpl.java: 39) 
>   em sun.reflect. DelegatingMethodAccessorImpl. invocar ( 
> DelegatingMethodAccessorImpl. java: 25) 
>   em java.lang.reflect.Method. invocar (Method.java: 597) 
>   em org.apache.tools.ant.dispatch. DispatchUtils.execute ( 
> DispatchUtils.java: 106) 
>   . pelo org.apache.tools.ant.Task executar (Task.java: 348) 
>   em org . .apache.tools.ant.Target executar (Target.java: 390) 
>   em org.apache.tools.ant.Target. performTasks (Target.java: 411) 
>   . pelo org.apache.tools.ant.Project executeSortedTargets (Project . 
> java: 1399) 
>   em org.apache.tools.ant.Project. executeTarget (Project.java: 1368) 
>   em org.apache.tools.ant.helper. DefaultExecutor. executeTargets ( 
> DefaultExecutor.java: 41) 
>   no org.apache. tools.ant.Project. executeTargets (Project.java: 1251) 
>   . pelo org.apache.tools.ant.Main runBuild (Main.java: 809) 
>   em org.apache.tools.ant.Main. startAnt (Main.java: 217) 
>   em org.apache.tools.ant.launch. Launcher.run (Launcher.java: 280) 
>   . pelo org.apache.tools.ant.launch Launcher.main (Launcher.java: 109) 
> Causada por: java.lang . IllegalStateException: Falha ao conectar ao banco de 
> dados 
>   . pelo org.sonar.core.persistence DefaultDatabase.start ( 
> DefaultDatabase.java: 80) 
>   . pelo sun.reflect . NativeMethodAccessorImpl invoke0 (Native Method) 
>   . pelo sun.reflect . NativeMethodAccessorImpl invocar ( 
> NativeMethodAccessorImpl. java: 39) 
>   . pelo sun.reflect . DelegatingMethodAccessorImpl invocar ( 
> DelegatingMethodAccessorImpl. java: 25) 
>   em java.lang.reflect.Method. invocar (Method.java: 597) 
>   em 
>   . org.picocontainer.lifecycle . ReflectionLifecycleStrategy começar ( . 
> ReflectionLifecycleStrategy java: 89) 
>   no 
>   . org.picocontainer.behaviors AbstractBehavior.start ( 
> AbstractBehavior.java: 169) 
>   em org.picocontainer.behaviors. Armazenado $ RealComponentLifecycle. 
> começar (Stored.java: 132) 
>   em org.picocontainer.behaviors. Stored.start (Stored.java: 110) 
>   . em org.picocontainer . DefaultPicoContainer potentiallyStartAdapter ( 
> DefaultPicoContainer.java: 1015) 
>   . em org.picocontainer . DefaultPicoContainer startAdapters ( 
> DefaultPicoContainer.java: 1008) 
>   . em org.picocontainer DefaultPicoContainer.start ( 
> DefaultPicoContainer.java: 766) 
>   no org. . sonar.api.platform ComponentContainer. startComponents ( 
> ComponentContainer.java: 91) 
>   em org.sonar.batch.bootstrapper. Batch.start (Batch.java: 81) 
> 

RE: Problem launching ssh slave

2014-10-01 Thread Jason Stanley
Open up the permissions on the slave.

 

Caused by: com.trilead.ssh2.SFTPException: Permission denied 
(SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to 
perform the operation.)

 

 

 

From: Jason Reslock [mailto:jresl...@gmail.com] 
Sent: Tuesday, September 30, 2014 5:23 PM
To: jenkinsci-users@googlegroups.com
Subject: Problem launching ssh slave

 

I'm having trouble launching an ssh slave and I am hoping someone can help me 
out.

 

I have a slave configured which fails to launch due to a permission error.  I 
will paste the error below.  

 

So far I have verified that I am able to ssh and scp to the slave machine from 
the jenkins master as the user making the call with the correct key.  It 
appears that jenkins is also able to get that far and then fails creating a 
directory.  I am able to scp files to that directory as the same user.  How 
does this plugin copy the slave jar?  I looked at the sftpClient code and I 
don't quite understand what is happening.  Does the master ssh to the slave and 
then launch an sftp request to itself to write the file?  

 

Here is the exception:

 

[09/30/14 21:06:06] [SSH] Checking java version of java
[09/30/14 21:06:06] [SSH] java -version returned 1.7.0_67.
[09/30/14 21:06:06] [SSH] Starting sftp client.
[09/30/14 21:06:06] [SSH] Remote file system root /mnt/jenkins does not exist. 
Will try to create it...
hudson.util.IOException2: Could not copy slave.jar into '/mnt/jenkins' on slave
  at 
hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:921)
  at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:596)
  at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:232)
  at 
jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
  at java.util.concurrent.FutureTask.run(FutureTask.java:262)
  at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:745)
Caused by: hudson.util.IOException2: Failed to mkdir /mnt/jenkins
  at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:85)
  at 
hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:893)
  ... 7 more
Caused by: com.trilead.ssh2.SFTPException: Permission denied 
(SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to 
perform the operation.)
  at 
com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:555)
  at com.trilead.ssh2.SFTPv3Client.mkdir(SFTPv3Client.java:955)
  at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:83)
  ... 8 more
[09/30/14 21:06:06] [SSH] Connection closed.

-- 
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 HYPERLINK 
"mailto:jenkinsci-users+unsubscr...@googlegroups.com"jenkinsci-users+unsubscr...@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.


Build failure

2014-10-01 Thread Menke, Mikolaj
Hello,

I have a failure in one of jobs. The log says:

===
Executing Maven:  -B -f /var/somepath/workspace/somejob/pom.xml -U 
-Dmaven.test.failure.ignore=false clean deploy --settings 
./.scm/settings_blades.xml
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NoClassDefFoundError: 
org/apache/maven/cli/MavenLoggerManager
at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:73)
... 17 more
Caused by: java.lang.ClassNotFoundException: 
org.apache.maven.cli.MavenLoggerManager
at 
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at 
org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
at 
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
at 
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
... 18 more
channel stopped
ERROR: Failed to parse POMs
hudson.util.IOException2: java.lang.reflect.InvocationTargetException
at hudson.maven.Maven3Builder.call(Maven3Builder.java:152)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.Exception: java.lang.reflect.InvocationTargetException
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:161)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
... 9 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
... 10 more
Caused by: java.lang.NoClassDefFoundError: 
org/apache/maven/cli/MavenLoggerManager
at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:73)
... 17 more
Caused by: java.lang.ClassNotFoundException: 
org.apache.maven.cli.MavenLoggerManager
at 
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at 
org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
at 
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
at 
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
... 18 more
===

I have not found anything that would help me to solve the issue. Does anyone 
can give any clues? Thank you in advance for your help.

Regards,
Mikolaj Menke

-- 
You received this message because you are subscribed

Losing all the jobs when I do restart Jenkins

2014-10-01 Thread Panikera Raj
Hi All,



What could be the reason to lose my existing jobs while doing restarting
the Jenkins, I am using jenkins version as: 1.564. OS is Mac 64 bit. But
when I do creates new job with same name (which I already used last time
before crashing)
it's loading all the existing build history only.

Please thanks in advance


Regards,
Panikera

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Project structure with git and Jenkins

2014-10-01 Thread Stephen Connolly
It does sound like a use case for my employer's (CloudBees) proprietary
validated merge plugin... I'm sure you can figure out how to find out more
about it without me venturing any further into "pimp our own wares"
territory

On 1 October 2014 03:31, Mark Waite  wrote:

> Given that condition (developer computers are too slow for reasonable
> compilation), I don't have any suggestion that I would consider very
> helpful.
>
> You could try having them commit to git on their local computer using
> feature branches, then push the feature branch to a central repository for
> compilation by Jenkins.  It seems like a real problem that you're making
> developers round trip through a central server before they can decide if
> their code computer.
>
> Thanks,
> Mark Waite
>
> On Tue, Sep 30, 2014 at 8:25 PM, Ritesh Patel  wrote:
>
>> Thank you Mark.
>>
>> Actually, we are facing compilation time issue on local servers as we are
>> using GWT.
>> To solve it, we set a central server with very good configuration.
>> So, developers can use that server for compilation.
>> Now, the idea is that developers have code on some shared drive, they
>> implement the code, and to compile they use jenkins, which is on central
>> server.
>>
>> Thanks,
>> Ritesh Patel.
>>
>> On Monday, September 29, 2014 10:18:47 PM UTC+7, Mark Waite wrote:
>>>
>>> Can you explain further what you hope to gain by using a shared drive
>>> for development?
>>>
>>> Git works best with local drives.  It is a fast version control system
>>> in large measure because the vast majority of its operations work on the
>>> local file system.  If you make git operate on a shared file system, you've
>>> now inserted a slowdown (network access) into all the operations performed
>>> by developers, all day long.  That seems like a serious penalty for the
>>> most active portion of a developer's working day.
>>>
>>> Git users have the notion of a "feature branch" which allows a developer
>>> to submit something to be evaluated by Jenkins, without making that change
>>> available on the authoritative branch.  You could investigate a feature
>>> branch based workflow, and use Jenkins to automate the merge from feature
>>> branches to the authoritative branch.
>>>
>>> Alternately, you could consider using Gerrit, which provides a code read
>>> facility and related workflow as a layer over a git repository.
>>>
>>> Mark Waite
>>>
>>> On Sun, Sep 28, 2014 at 10:34 PM, Ritesh Patel 
>>> wrote:
>>>
 Hi All,

 Right now, in our project, developers develop code on shared drive,
 compile on common server, but deploy on local PC.
 But, we want continuous integration in future with git and Jenkins.
 Our main requirement is that developers should not have anything on
 their PC, they develop on shared drive, once they save, they can ask
 Jenkins to compile and deploy automatically.
 But, this should happen without commit to main branch.
 How we can achieve this?

 Thanks in advance.

 Ritesh Patel.

 --
 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-use...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> --
>>> Thanks!
>>> Mark Waite
>>>
>>  --
>> 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.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Thanks!
> Mark Waite
>
> --
> 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.
> 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.
For more options, visit https://groups.google.com/d/optout.