A misconfigured host name / port? Anyone know which please?

2014-05-05 Thread William Damage
(Taken from the Resin Google group)

Happens with the latest Resin Pro (4.0.39) and latest Jenkins (1.561). It's 
always been there since I started using them through their applicable 
versions last year.
On start up, all is well until you first visit the Jenkins page then the 
error is thrown. It then intermittently appears as you navigate your site. 
Otherwise, Resin runs Jenkins very well indeed. 

This is the log:

[14-05-01 11:58:46.753] {Handling GET /jenkins/ : resin-port-8080-23} 
Caught exception evaluating: h.advertiseHeaders(response) in /jenkins/. 
Reason: java.lang.NullPointerException
   java.lang.NullPointerException
at 
com.caucho.server.http.AbstractHttpResponse.setHeader(AbstractHttpResponse.java:359)
at 
com.caucho.server.http.HttpServletResponseImpl.setHeader(HttpServletResponseImpl.java:1174)
at 
javax.servlet.http.HttpServletResponseWrapper.setHeader(HttpServletResponseWrapper.java:121)
at 
org.kohsuke.stapler.compression.CompressionServletResponse.setHeader(CompressionServletResponse.java:30)
at 
javax.servlet.http.HttpServletResponseWrapper.setHeader(HttpServletResponseWrapper.java:121)
at 
hudson.Functions.advertiseHeaders(Functions.java:1862)
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.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)
at 
org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
at 
org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
at 
org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
at 
org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
at 
org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
at 
hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74)
at 
org.apache.commons.jelly.parser.EscapingExpression.evaluate(EscapingExpression.java:24)
at 
org.apache.commons.jelly.impl.ExpressionScript.run(ExpressionScript.java:66)
at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at 
org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98)
at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at 
org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at 
org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
at 
org.kohsuke.stapler.jelly.CompressTag.doTag(CompressTag.java:44)
at 
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at 
org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
at 
org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
at 
org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
at 
org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:112)
at 
org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:127)
at 
org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:717)
at 
org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
at 
org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:795)
at 
org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
at 
org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
at 
org.kohsuke.stapler.Stapler.service(Stapler.java:225)
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:97)
at 
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:109)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
at 
hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
at 

ssh slaves connection timeout

2014-05-05 Thread Guillaume Boucherie
Hi,

I'm facing very unstable ssh connection between master/slaves on my Jenkins 
installation.
Both master and slaves are AWS instance that run on AWS Linux system.
After some time the ssh connection stop, current job that run are freeze 
and failed after 15min.
I attached the stacktrace from jenkins.log

Does anybody face the same problem ?
Maybe its related to ssh configuration ?
I'm running Jenkins 1.554.1 and salve version used is 2.36.

Thanks
Guillaume Boucherie

-- 
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.
May 05, 2014 10:10:40 AM 
hudson.remoting.SynchronousCommandTransport$ReaderThread run
SEVERE: I/O error in channel jenkins-slave-linux-1
java.net.SocketException: Connection timed out
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
at 
com.trilead.ssh2.crypto.cipher.CipherOutputStream.flush(CipherOutputStream.java:75)
at 
com.trilead.ssh2.transport.TransportConnection.sendMessage(TransportConnection.java:193)
at 
com.trilead.ssh2.transport.TransportConnection.sendMessage(TransportConnection.java:107)
at 
com.trilead.ssh2.transport.TransportManager.sendMessage(TransportManager.java:666)
at com.trilead.ssh2.channel.Channel.freeupWindow(Channel.java:377)
at 
com.trilead.ssh2.channel.ChannelManager.getChannelData(ChannelManager.java:952)
at 
com.trilead.ssh2.channel.ChannelInputStream.read(ChannelInputStream.java:58)
at 
hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:85)
at 
java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2310)
at 
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2323)
at 
java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInputStream.java:3063)
at 
java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2864)
at java.io.ObjectInputStream.readUTF(ObjectInputStream.java:1072)
at java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java:671)
at 
java.io.ObjectInputStream.readClassDescriptor(ObjectInputStream.java:830)
at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at hudson.remoting.Command.readFrom(Command.java:92)
at 
hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:71)
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

May 05, 2014 10:10:40 AM 
hudson.node_monitors.AbstractAsyncNodeMonitorDescriptor monitor
WARNING: Failed to monitor jenkins-slave-linux-1 for Architecture
java.io.IOException: Sorry, this connection is closed.
at 
com.trilead.ssh2.transport.TransportManager.sendMessage(TransportManager.java:647)
at 
com.trilead.ssh2.channel.ChannelManager.sendData(ChannelManager.java:438)
at 
com.trilead.ssh2.channel.ChannelOutputStream.write(ChannelOutputStream.java:63)
at 
java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1876)
at 
java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1785)
at 
java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1285)
at 
java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1230)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1426)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at 
java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1576)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:350)
at hudson.remoting.Command.writeTo(Command.java:83)
at 
hudson.remoting.ClassicCommandTransport.write(ClassicCommandTransport.java:52)
at hudson.remoting.Channel.send(Channel.java:528)
at hudson.remoting.Request.callAsync(Request.java:208)
at hudson.remoting.Channel.callAsync(Channel.java:749)
at 
hudson.node_monitors.AbstractAsyncNodeMonitorDescriptor.monitor(AbstractAsyncNodeMonitorDescriptor.java:76)
at 
hudson.node_monitors.AbstractNodeMonitorDescriptor$Record.run(AbstractNodeMonitorDescriptor.java:280)
Caused by: java.net.SocketException: 

Jenkins to update multiple jira issues to resolved

2014-05-05 Thread Raf
Hi All,

I am trying to updating a list of Jira ticktes to resolve and update the 
fix version, what is the best way to do this in Jenkins?
Any plugin for recommendation?

Thanks! 

-- 
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: New build flow seems to break many things

2014-05-05 Thread frank270380
Hi, 

with the new version, we can't use the promotion plugin any longer. Jobs 
using DSL will just not geht the Promotion Status Link after building 
finished. It seems the promotion plugin is no longer triggered. 

Any ideas/help?

-- 
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.


Activation of retain long standard output/error on a Maven job

2014-05-05 Thread Kamil Szuster
Hi there,

I am looking for a way to activate the retain long standard output/error 
option of the JUnit Testresults Publisher on a Maven job.
The output (stdio) of a unit-test is truncated on a maven job and there is 
no checkbox (but there is on a freestyle job) to deactivate that behaviour.

The truncated output looks like the following, but i want the full output 
of the junit test.


Standard Ausgabe (STDOUT)

System.out
Mai 05, 2014 2:11:32 PM SampleTest bootstrap
INFO: bootstrap start
Mai 05, 2014 2:11:32 PM SampleTest bootstrap
INFO: bootstrap end
Mai 05, 2014 2:11:32 PM SampleTest test
INFO: test start
System.out: 0
System.out: 1
System.out: 2
System.out: 3
System.out: 4
System.out: 5
System.out: 6
System.out: 7
System.out: 8
System.out: 9
System.out: 10
System.out: 11
System.out: 12
System.out: 13
System.out: 14
System.out: 15
System.out: 16
System.out: 17
System.out: 18
System.out: 19
Syst
...[truncated 7153 bytes]...
m.out: 472
System.out: 473
System.out: 474
System.out: 475
System.out: 476
System.out: 477
System.out: 478
System.out: 479
System.out: 480
System.out: 481
System.out: 482
System.out: 483
System.out: 484
System.out: 485
System.out: 486
System.out: 487
System.out: 488
System.out: 489
System.out: 490
System.out: 491
System.out: 492
System.out: 493
System.out: 494
System.out: 495
System.out: 496
System.out: 497
System.out: 498
System.out: 499
Mai 05, 2014 2:11:32 PM SampleTest test
INFO: test end
===

Any suggestions? 



-- 
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: New build flow seems to break many things

2014-05-05 Thread Slide
It seems like with all of these issues and Nicolas no longer wanting to
manage the plugin, perhaps someone could take it over and revert to the
code at the previous version before the changes and do a release.


On Mon, May 5, 2014 at 4:02 AM, frank270380 frank270...@googlemail.comwrote:

 Hi,

 with the new version, we can't use the promotion plugin any longer. Jobs
 using DSL will just not geht the Promotion Status Link after building
 finished. It seems the promotion plugin is no longer triggered.

 Any ideas/help?

 --
 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.




-- 
Website: http://earl-of-code.com

-- 
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: EXTERNAL: Re: Advice on how to have single job iterate over several different Config Specs?

2014-05-05 Thread Horton, Anne B
Vivekanand,
Thank you very much for your reply.  I have been reading up and found that some 
Jenkins users have found that the Matrix plugin does not work well with other 
plugins (and we need our other plugins to work!!).

Does anybody have anymore suggestions please???

Thank you in advance,
Anne

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Vivekanand S V
Sent: Tuesday, April 29, 2014 8:46 AM
To: jenkinsci-users@googlegroups.com
Subject: EXTERNAL: Re: Advice on how to have single job iterate over several 
different Config Specs?

Have you check 
https://wiki.jenkins-ci.org/display/JENKINS/Building+a+matrix+project ? That 
page also points to pages with more details.

On Tue, Apr 29, 2014 at 5:56 PM, Horton, Anne B 
anne.b.hor...@lmco.commailto:anne.b.hor...@lmco.com wrote:
Jenkins masters,
We are using the version of the clearcase plugin that supports having config 
specs in a file.

So, what is the most advantageous way to configure Jenkins so to run a single 
Jenkins job over 3 different config specs?

Thank you very much in advance,
Anne
--
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.commailto: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.commailto: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.


Need help with a simple problem with MSBuild

2014-05-05 Thread Aaron Stokes
We are now in the process of updating our IDE to C++ builder XE5.  We 
needed to recreate all of our projects from scratch.  The project compiles 
in both MSBuild (on the actual machine) and the IDE but when we try to run 
MSBuild through jenkins, MSbuild does not know how to find certain 
resources.  I think I'm missing a step but I don't know what I'm missing.  

Here is what I tried.
I tried calling rsvars from a command line and then tried to run msbuild. 
Tried setting %PATH% using inject environment variables. 
Tried calling a batch file located on the actual build machine same result.
Tried updating the MSBuild plugin to the latest version and checking Pass 
build variables as properties.  Unfortunately it did not include any thing 
defined in inject environment variables.   

We are currently using the following
MSBuild plugin 1.2.1
Jenkins: 1.455

The components that are throwing errors are all third party components.
Madexcept 4.0.9
TMScomponents 7.1.6.1

Here are some examples of the errors I'm getting.  

vat.cpp(16): error E2209: Unable to open include file 'madExcept.hpp'
vat.cpp(56): error E2293: ) expected
vatmain.cpp(85): error E2209: Unable to open include file 'AdvGrid.hpp'

..\CommonClasses\MPTIFontSelector.h(5): error E2209: Unable to open include 
file 'AdvOfficeComboBox.hpp'
..\CommonClasses\MPTIFontSelector.h(6): error E2209: Unable to open include 
file 'AsgCombo.hpp'
..\CommonClasses\MPTIFontSelector.h(7): error E2209: Unable to open include 
file 'ColorCombo.hpp'
..\CommonClasses\MPTIFontSelector.h(19): error E2303: Type name expected
..\CommonClasses\MPTIFontSelector.h(19): error E2139: Declaration missing ;
..\CommonClasses\MPTIFontSelector.h(21): error E2303: Type name expected
..\CommonClasses\MPTIFontSelector.h(21): error E2139: Declaration missing ;
..\CommonClasses\MPTIFontSelector.h(24): error E2303: Type name expected
..\CommonClasses\MPTIFontSelector.h(24): error E2139: Declaration missing ;
..\CommonClasses\MPTIFontSelector.h(19): error E2109: Not an allowed type
..\CommonClasses\MPTIFontSelector.h(21): error E2109: Not an allowed type
..\CommonClasses\MPTIFontSelector.h(24): error E2109: Not an allowed type
..\CommonClasses\MPTIFontSelector.cpp(36): error E2451: Undefined symbol 
'AdvOfficeFontSizeSelector1' in function TMPTIFont::updateFont()
..\CommonClasses\MPTIFontSelector.cpp(38): error E2451: Undefined symbol 
'AdvOfficeFontSelector1' in function TMPTIFont::updateFont()
..\CommonClasses\MPTIFontSelector.cpp(79): error E2451: Undefined symbol 
'AdvOfficeFontSelector1' in function _fastcall 
TMPTIFont::AdvOfficeFontSelector1Change(TObject *)
..\CommonClasses\MPTIFontSelector.cpp(97): error E2451: Undefined symbol 
'AdvOfficeFontSizeSelector1' in function _fastcall 
TMPTIFont::AdvOfficeFontSizeSelector1Change(TObject *)
..\CommonClasses\MPTIFontSelector.cpp(113): error E2451: Undefined symbol 
'AdvColorComboBox1' in function _fastcall 
TMPTIFont::AdvColorComboBox1Change(TObject *)
..\CommonClasses\MPTIFontSelector.cpp(189): error E2451: Undefined symbol 
'AdvColorComboBox1' in function TMPTIFont::setComboColor(TColor)


 

-- 
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.


Dynamic Parameter question

2014-05-05 Thread alok kumar
Hi All,
We have a requirement in one of our Jenkins parameterized build project
where we need to populate a selection of options in one parameter  based on
the selection that was made before in another parameter i.e. dynamically
populating the second parameter based on the first one.

What is the best way to do this? I need to have check boxes as options in
the second parameter based on the selection of a single choice parameter in
the first one.

E.g. say that we select car in the first parameter, I should get to choose
from Ford, Toyota, Honda, Subaru, etc in the next parameter and that should
be check boxes.

Is there a way to achieve this requirement? Also, how do we access the
value of a parameter in a groovy script in another parameter?

Any help would be deeply appreciated.

Thanks in advance,
Alok

-- 
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: Error when upgrading Jenkins server (1.560 Ubuntu)

2014-05-05 Thread Marius Gedminas
On Sun, May 04, 2014 at 09:03:19PM -0700, ziv wrote:
 Thanks, Daniel but that did not help.
 
 -
 The following packages will be upgraded:
   jenkins
 1 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
 1 not fully installed or removed.
 Need to get 62.1 MB of archives.
 After this operation, 285 kB of additional disk space will be used.
 Get:1 http://pkg.jenkins-ci.org/debian/ binary/* jenkins 1.562 [62.1 MB]*
 Fetched 62.1 MB in 5s (11.0 MB/s)
 Setting up jenkins (1.560) ...
 dpkg: error processing jenkins (--configure):
  subprocess installed post-installation script returned error exit status 1
 E: Sub-process /usr/bin/dpkg returned an error code (1)

If you edit /var/lib/dpkg/info/jenkins.postinst and add

   set -x

at the top, near the 'set -e', and then run

   sudo dpkg --configure -a

it will tell you more about the failure.

 On Sunday, May 4, 2014 6:36:17 PM UTC+3, Daniel Beck wrote:
  Wait for 1.562. 
 
  https://issues.jenkins-ci.org/browse/JENKINS-22715 

Marius Gedminas
-- 
(Why, oh! why is X not written in Lisp?)
-- Juliusz Chroboczek


signature.asc
Description: Digital signature


Re: maven plugin - how to obtain the jenkins user name

2014-05-05 Thread Mauro Flores
I'd like to log who is running this maven plugin.  
I thought I could access the jenkins user from a simple maven plugin 
running on jenkins.. I'm afraid I'll have to build (or extend) a jenkins 
plugin to achieve that. 

Regards. Mauro. 

Em sábado, 3 de maio de 2014 12h04min32s UTC-3, Baptiste Mathus escreveu:

 Well, no indeed. Maven is an independent project and generally runs out of 
 Jenkins.

 Maybe you should explain a bit more what you are trying to achieve.

 Cheers
 Le 1 mai 2014 00:50, Mauro Flores mauroand...@gmail.com javascript: 
 a écrit :

 Maybe I haven't expressed myself correctly. 


 I get a ClassNotFound exception for hudson.model.User. 

 Does a maven plugin (not a jenkins plugin) has access to jenkins 
 classpath ? 

 Regards. Mauro Flores. 

 Em terça-feira, 29 de abril de 2014 18h29min31s UTC-3, Mauro Flores 
 escreveu:

 Thanks. Michael. 

 A complementary question. 

 Do I have to add the jar of this class hudson.model.User to my maven 
 plugin jar? Or the classpath of jenkins is visible to the execution of my 
 maven plugin?
 If I have to add, can you help how to define the dependency. 
 If I do like below I lot of jars are brought. 

 dependency
 groupIdorg.jenkins-ci.main/groupId
 artifactIdjenkins-core/artifactId
 version1.543/version
 /dependency


 Em sábado, 26 de abril de 2014 11h59min44s UTC-3, Michael Clarke 
 escreveu:

 Use 
 User.current()http://javadoc.jenkins-ci.org/hudson/model/User.html#current()


 On 25 April 2014 23:17, Mauro Flores mauroand...@gmail.com wrote:

 Hello, 

 I'm building a maven plugin. 
 I'd like to access the name of the user logged on jenkins inside the 
 maven plugin. 

 Regards. Mauro. 


  -- 
 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.


  -- 
 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 javascript:.
 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: maven plugin - how to obtain the jenkins user name

2014-05-05 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
What do you mean by 'running'? Does this plugin provide a build step, a 
publisher, or something else? If it provides something that is used during a 
build, then you want the user who initiated the build.

- Original Message -
From: jenkinsci-users@googlegroups.com
To: jenkinsci-users@googlegroups.com
Cc: bmat...@batmat.net
At: May  5 2014 12:49:10

I'd like to log who is running this maven plugin.  
I thought I could access the jenkins user from a simple maven plugin running on 
jenkins.. I'm afraid I'll have to build (or extend) a jenkins plugin to achieve 
that. 

Regards. Mauro. 

Em sábado, 3 de maio de 2014 12h04min32s UTC-3, Baptiste Mathus  escreveu:

Well, no indeed. Maven is an independent project and generally runs out of 
Jenkins.
Maybe you should explain a bit more what you are trying to achieve.
Cheers
Le 1 mai 2014 00:50, Mauro Flores mauroand...@gmail.com a écrit :

Maybe I haven't expressed myself correctly. 


I get a ClassNotFound exception for hudson.model.User. 

Does a maven plugin (not a jenkins plugin) has access to jenkins classpath ? 

Regards. Mauro Flores. 

Em terça-feira, 29 de abril de 2014 18h29min31s UTC-3, Mauro Flores  escreveu:
Thanks. Michael. 

A complementary question. 

Do I have to add the jar of this class hudson.model.User to my maven plugin 
jar? Or the classpath of jenkins is visible to the execution of my maven plugin?
If I have to add, can you help how to define the dependency. 
If I do like below I lot of jars are brought. 

dependency
groupIdorg.jenkins-ci.main/groupId
artifactIdjenkins-core/artifactId
version1.543/version
/dependency


Em sábado, 26 de abril de 2014 11h59min44s UTC-3, Michael Clarke  escreveu:
Use User.current()


On 25 April 2014 23:17, Mauro Flores mauroand...@gmail.com wrote:
 
Hello, 

I'm building a maven plugin. 
I'd like to access the name of the user logged on jenkins inside the maven 
plugin. 

Regards. Mauro. 


 -- 
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.


-- 
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.


-- 
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.


Jenkins slave appear offline - SSHLauncher threads BLOCKED

2014-05-05 Thread Charles Chan


Hello,

One of the issue we have recently been experiencing with Jenkins is that the 
slaves (node) would go offline for no apparent reason and would not reconnect 
automatically.
When slaves appear as offline, we tried to launch/reconnect the slave manually 
but it does not work either. However, we are able to SSH into the machine using 
PuTTy.
The only workaround is to restart the Jenkins server, until the problem 
surfaces again. (Typically in a week.)

Instance Information

Jenkins Server:1.562
SSH Credentials Plugin:1.6.1
SSH Slaves Plugin  1.6

Thread dump of slave node:
{dump}
Channel reader thread: qa-linbuild-02 prio=5 WAITING
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)

com.trilead.ssh2.channel.ChannelManager.waitUntilChannelOpen(ChannelManager.java:109)

com.trilead.ssh2.channel.ChannelManager.openSessionChannel(ChannelManager.java:583)
com.trilead.ssh2.Session.init(Session.java:41)
com.trilead.ssh2.Connection.openSession(Connection.java:1129)
com.trilead.ssh2.SFTPv3Client.init(SFTPv3Client.java:99)
com.trilead.ssh2.SFTPv3Client.init(SFTPv3Client.java:119)

hudson.plugins.sshslaves.SSHLauncher.afterDisconnect(SSHLauncher.java:1160)
hudson.slaves.SlaveComputer$2.onClosed(SlaveComputer.java:437)
hudson.remoting.Channel.terminate(Channel.java:819)

hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:76)

Channel reader thread: qa-linbuild-03 prio=5 WAITING
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)

com.trilead.ssh2.channel.ChannelManager.waitUntilChannelOpen(ChannelManager.java:109)

com.trilead.ssh2.channel.ChannelManager.openSessionChannel(ChannelManager.java:583)
com.trilead.ssh2.Session.init(Session.java:41)
com.trilead.ssh2.Connection.openSession(Connection.java:1129)
com.trilead.ssh2.SFTPv3Client.init(SFTPv3Client.java:99)
com.trilead.ssh2.SFTPv3Client.init(SFTPv3Client.java:119)

hudson.plugins.sshslaves.SSHLauncher.afterDisconnect(SSHLauncher.java:1160)
hudson.slaves.SlaveComputer$2.onClosed(SlaveComputer.java:437)
hudson.remoting.Channel.terminate(Channel.java:819)

hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:76)
{dump}

Also concerning is the number of threads is in the BLOCKED (126!). 
Doesn't seem normal as there are no BLOCKED threads after the server is 
restarted.
{dump}
// 118 instances
Computer.threadPoolForRemoting [#26] daemon prio=5 BLOCKED

hudson.plugins.sshslaves.SSHLauncher.afterDisconnect(SSHLauncher.java:1152)
hudson.slaves.SlaveComputer$3.run(SlaveComputer.java:542)

jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
java.util.concurrent.FutureTask.run(FutureTask.java:138)

java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)

// 8 instances
Computer.threadPoolForRemoting [#2922] daemon prio=5 BLOCKED
hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:639)
hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:222)

jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
java.util.concurrent.FutureTask.run(FutureTask.java:138)

java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)
{dump}

Looking forward to any ideas or suggestions.

Thank you.
Charles Chan

-- 
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: maven plugin - how to obtain the jenkins user name

2014-05-05 Thread Mauro Flores
I mean the user that is logged on jenkins and started a jenkins job that in 
the build step refers a pom.xml that declares this plugin. 



Em segunda-feira, 5 de maio de 2014 14h21min39s UTC-3, Kevin Fleming 
escreveu:

 What do you mean by 'running'? Does this plugin provide a build step, a 
 publisher, or something else? If it provides something that is used during 
 a build, then you want the user who initiated the build.

 - Original Message -
 From: jenkins...@googlegroups.com javascript:
 To: jenkins...@googlegroups.com javascript:
 Cc: bma...@batmat.net javascript:
 At: May 5 2014 12:49:10

 I'd like to log who is running this maven plugin.  
 I thought I could access the jenkins user from a simple maven plugin 
 running on jenkins.. I'm afraid I'll have to build (or extend) a jenkins 
 plugin to achieve that. 

 Regards. Mauro. 

 Em sábado, 3 de maio de 2014 12h04min32s UTC-3, Baptiste Mathus escreveu:

 Well, no indeed. Maven is an independent project and generally runs out 
 of Jenkins.

 Maybe you should explain a bit more what you are trying to achieve.

 Cheers
 Le 1 mai 2014 00:50, Mauro Flores mauroand...@gmail.com a écrit :

 Maybe I haven't expressed myself correctly. 


 I get a ClassNotFound exception for hudson.model.User. 

 Does a maven plugin (not a jenkins plugin) has access to jenkins 
 classpath ? 

 Regards. Mauro Flores. 

 Em terça-feira, 29 de abril de 2014 18h29min31s UTC-3, Mauro Flores 
 escreveu:

 Thanks. Michael. 

 A complementary question. 

 Do I have to add the jar of this class hudson.model.User to my maven 
 plugin jar? Or the classpath of jenkins is visible to the execution of my 
 maven plugin?
 If I have to add, can you help how to define the dependency. 
 If I do like below I lot of jars are brought. 

 dependency
 groupIdorg.jenkins-ci.main/groupId
 artifactIdjenkins-core/artifactId
 version1.543/version
 /dependency


 Em sábado, 26 de abril de 2014 11h59min44s UTC-3, Michael Clarke 
 escreveu:

 Use 
 User.current()http://javadoc.jenkins-ci.org/hudson/model/User.html#current()


 On 25 April 2014 23:17, Mauro Flores mauroand...@gmail.com wrote:

 Hello, 

 I'm building a maven plugin. 
 I'd like to access the name of the user logged on jenkins inside the 
 maven plugin. 

 Regards. Mauro. 


 -- 
 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.


 -- 
 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.

 -- 
 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 javascript:.
 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: maven plugin - how to obtain the jenkins user name

2014-05-05 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
Then you do mean the user who initiated the job; note that this does not 
necessarily mean a user who was logged in, as jobs can be started by 
'anonymous' (from an SCM trigger for example), or via the API.

The Build object itself should have a record of the user who initiated it, 
there's no need to talk to the Jenkins/Hudson objects to see who is logged in, 
and in fact that would not work in a build step anyway because they don't run 
in the same environment.

- Original Message -
From: jenkinsci-users@googlegroups.com
To: jenkinsci-users@googlegroups.com
Cc: Kevin Fleming (BLOOMBERG/ 731 LEXIN)
At: May  5 2014 15:27:54

I mean the user that is logged on jenkins and started a jenkins job that in the 
build step refers a pom.xml that declares this plugin. 


Em segunda-feira, 5 de maio de 2014 14h21min39s UTC-3, Kevin Fleming  escreveu:
What do you mean by 'running'? Does this plugin provide a build step, a 
publisher, or something else? If it provides something that is used during a 
build, then you want the user who initiated the build.

- Original Message -
From: jenkins...@googlegroups.com
To: jenkins...@googlegroups.com
Cc: bma...@batmat.net
At: May  5 2014 12:49:10

I'd like to log who is running this maven plugin.  
I thought I could access the jenkins user from a simple maven plugin running on 
jenkins.. I'm afraid I'll have to build (or extend) a jenkins plugin to achieve 
that. 

Regards. Mauro. 

Em sábado, 3 de maio de 2014 12h04min32s UTC-3, Baptiste Mathus  escreveu:

Well, no indeed. Maven is an independent project and generally runs out of 
Jenkins.
Maybe you should explain a bit more what you are trying to achieve.
Cheers
Le 1 mai 2014 00:50, Mauro Flores mauroand...@gmail.com a écrit :

Maybe I haven't expressed myself correctly. 


I get a ClassNotFound exception for hudson.model.User. 

Does a maven plugin (not a jenkins plugin) has access to jenkins classpath ? 

Regards. Mauro Flores. 

Em terça-feira, 29 de abril de 2014 18h29min31s UTC-3, Mauro Flores  escreveu:
Thanks. Michael. 

A complementary question. 

Do I have to add the jar of this class hudson.model.User to my maven plugin 
jar? Or the classpath of jenkins is visible to the execution of my maven plugin?
If I have to add, can you help how to define the dependency. 
If I do like below I lot of jars are brought. 

dependency
groupIdorg.jenkins-ci.main/groupId
artifactIdjenkins-core/artifactId
version1.543/version
/dependency


Em sábado, 26 de abril de 2014 11h59min44s UTC-3, Michael Clarke  escreveu:
Use User.current()


On 25 April 2014 23:17, Mauro Flores mauroand...@gmail.com wrote:
 
Hello, 

I'm building a maven plugin. 
I'd like to access the name of the user logged on jenkins inside the maven 
plugin. 

Regards. Mauro. 


 -- 
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.


-- 
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.


-- 
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.


-- 
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: Jenkins slave appear offline - SSHLauncher threads BLOCKED

2014-05-05 Thread Stephen Connolly
How many slaves do you have?

It is rather easy to saturate a server with a small number of ssh-slaves
based slaves.

For example, on an AWS m3.large class machine, 10 ssh-slaves concurrently
building jobs as chatty as the mock-load-builder job type is the most you
can push.

If you use JNLP slaves, you can get close to 60 concurrent builds before
the system starts falling over.

The CloudBees NIO ssh-slaves plugin (part if the enterprise offering) has a
different performance characteristic... My most recent tests I was able to
get up to 120 concurrent builds, without affecting the Jenkins UI (I only
had set up for that number of slaves... It likely can go further, though
m3.large is not beefy enough) what was affected though we're build times.
The builds were 2-3 times slower due to back-pressure effects causing the
builds to block on STDOUT.

If anyone else is interested, we will be releasing our scalability test
harness (actually I will be ripping the bottom out of the acceptance test
framework and putting the scalability harness in its place... But the
harness is also useful for scalability testing). We will also be publishing
our findings.

The other thing to watch is how your entropy pool is holding up. The
default random source in Linux typically gets exhausted quite quickly. That
can cause your ssh slaves to fail ping tests and timeout/block

I think the package you want to install is haveged

That or switch java to /dev/urandom

Note: I am currently not recommending any specific slave connector, there
are trade-offs with each type of connector. I will be writing up a blog
post in the near future discussing the various trade-offs.

Standard ssh-slaves degrades poorly... This is great if you want to know
when you have reached your limit

NIO ssh-slaves degrades gracefully, I need to determine where it starts
degrading relative to standard ssh-slaves, but if UI responsiveness is more
important than build times then this has advantages (though you need to be
a paying cloudbees customer)

JNLP scales the highest without affecting build times, but degrades
fastest, is a poor fit for on-demand connection/retention strategies and
does not offer the same transport encryption security as the ssh- versions

Those are just the brief high-level measures

On Monday, 5 May 2014, Charles Chan charles.wh.c...@gmail.com wrote:

 Hello,

 One of the issue we have recently been experiencing with Jenkins is that the 
 slaves (node) would go offline for no apparent reason and would not reconnect 
 automatically.
 When slaves appear as offline, we tried to launch/reconnect the slave 
 manually but it does not work either. However, we are able to SSH into the 
 machine using PuTTy.
 The only workaround is to restart the Jenkins server, until the problem 
 surfaces again. (Typically in a week.)

 Instance Information
 
 Jenkins Server:1.562
 SSH Credentials Plugin:1.6.1
 SSH Slaves Plugin  1.6

 Thread dump of slave node:
 {dump}
 Channel reader thread: qa-linbuild-02 prio=5 WAITING
   java.lang.Object.wait(Native Method)
   java.lang.Object.wait(Object.java:485)
   
 com.trilead.ssh2.channel.ChannelManager.waitUntilChannelOpen(ChannelManager.java:109)
   
 com.trilead.ssh2.channel.ChannelManager.openSessionChannel(ChannelManager.java:583)
   com.trilead.ssh2.Session.init(Session.java:41)
   com.trilead.ssh2.Connection.openSession(Connection.java:1129)
   com.trilead.ssh2.SFTPv3Client.init(SFTPv3Client.java:99)
   com.trilead.ssh2.SFTPv3Client.init(SFTPv3Client.java:119)
   
 hudson.plugins.sshslaves.SSHLauncher.afterDisconnect(SSHLauncher.java:1160)
   hudson.slaves.SlaveComputer$2.onClosed(SlaveComputer.java:437)
   hudson.remoting.Channel.terminate(Channel.java:819)
   
 hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:76)

 Channel reader thread: qa-linbuild-03 prio=5 WAITING
   java.lang.Object.wait(Native Method)
   java.lang.Object.wait(Object.java:485)
   
 com.trilead.ssh2.channel.ChannelManager.waitUntilChannelOpen(ChannelManager.java:109)
   
 com.trilead.ssh2.channel.ChannelManager.openSessionChannel(ChannelManager.java:583)
   com.trilead.ssh2.Session.init(Session.java:41)
   com.trilead.ssh2.Connection.openSession(Connection.java:1129)
   com.trilead.ssh2.SFTPv3Client.init(SFTPv3Client.java:99)
   com.trilead.ssh2.SFTPv3Client.init(SFTPv3Client.java:119)
   
 hudson.plugins.sshslaves.SSHLauncher.afterDisconnect(SSHLauncher.java:1160)
   hudson.slaves.SlaveComputer$2.onClosed(SlaveComputer.java:437)
   hudson.remoting.Channel.terminate(Channel.java:819)
   
 hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:76)
 {dump}

 Also concerning is the number of threads is in the BLOCKED (126!).
 Doesn't seem normal as there are no BLOCKED threads after the server is 
 restarted.
 {dump}
 // 

Weird tool update issue...

2014-05-05 Thread Jeff
Jenkins 1.559 + Tomcat 7 + JDK 7 + Ubuntu 12.04LTS

This morning I came to work and finished configuring a new slave that I set
up on Friday.  When I tried building (Maven project) I kept getting these
errors when it tried running Maven 3.1.1:

Invalid tool ID 3.1.1


I thought it had to do with configuration with auto-installing the tools on
my new slave.

After some Googling, I found that the JENKINS_HOME/updates folder had the
files listing information on various tool versions, in particular,
hudson.tasks.Maven.MavenInstaller.

However, when I inspected the content, there was ANT version information in
the file and not Maven version information.  After looking at all the other
files, I discovered that:

   - hudson.tasks.Maven.*MavenInstaller *contained *ANT *version information
   - hudson.tasks.Ant.*AntInstaller *contained *SonarRunner *version
   information
   - hudson.plugins.sonar.*SonarRunnerInstaller *had *JDK *version
   information
   - hudson.tools.*JDKInstaller* had the same information as
   org.jenkinsci.plugins.scriptler.*CentralScriptJsonCatalog *

It's as if the file index got off by one and it wrote the content to the
wrong files.

I shut down Jenkins, removed the files then restarted and it seems to be
working again, but it was very frustrating.

Anyone else seen this or know what might have happened?

-- 
Jeff Vincent
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent

-- 
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.


Polling from git doesn't work

2014-05-05 Thread Sebastian Schmidt
Hi,

I'm trying to integrate jenkins with github. I first tried the webhook, but 
it fails with no error message. Github says the message was delivered 
correctly...
Then I tried git polling. It gives this strange message in the poll log:

Started on 05.05.2014 23:41:42
We need to schedule a new build to get a workspace, but deferring 2.374ms in 
the hope that one will become available soon (all_suitable_nodes_are_offline)
Done. Took 2 ms
No changes


Does someone know how to solve this?

I noticed this line in the log: 

Effective SlaveRestarter on master: null

Could this be correlated to the above poll log message?

Kind Regards,
Sebastian

-- 
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: Polling from git doesn't work

2014-05-05 Thread Mark Waite
Looks like you may be encountering
https://issues.jenkins-ci.org/browse/JENKINS-22750 .  Several ideas are
listed in the comments of alternative techniques you can apply to work
around the issue.


On Mon, May 5, 2014 at 2:44 PM, Sebastian Schmidt isib...@gmail.com wrote:

 Hi,

 I'm trying to integrate jenkins with github. I first tried the webhook,
 but it fails with no error message. Github says the message was delivered
 correctly...
 Then I tried git polling. It gives this strange message in the poll log:

 Started on 05.05.2014 23:41:42
 We need to schedule a new build to get a workspace, but deferring 2.374ms in 
 the hope that one will become available soon (all_suitable_nodes_are_offline)
 Done. Took 2 ms
 No changes


 Does someone know how to solve this?

 I noticed this line in the log:

 Effective SlaveRestarter on master: null

 Could this be correlated to the above poll log message?

 Kind Regards,
 Sebastian

  --
 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.


Re: Polling from git doesn't work

2014-05-05 Thread Sebastian Schmidt
Thank you for your fast reply! I'll try that immediately.
Am 05.05.2014 22:48, schrieb Mark Waite:
 Looks like you may be
 encountering https://issues.jenkins-ci.org/browse/JENKINS-22750 .
  Several ideas are listed in the comments of alternative techniques
 you can apply to work around the issue.


 On Mon, May 5, 2014 at 2:44 PM, Sebastian Schmidt isib...@gmail.com
 mailto:isib...@gmail.com wrote:

 Hi,

 I'm trying to integrate jenkins with github. I first tried the
 webhook, but it fails with no error message. Github says the
 message was delivered correctly...
 Then I tried git polling. It gives this strange message in the
 poll log:

 Started on 05.05.2014 23:41:42
 We need to schedule a new build to get a workspace, but deferring 2.374ms 
 in the hope that one will become available soon 
 (all_suitable_nodes_are_offline)
 Done. Took 2 ms
 No changes


 Does someone know how to solve this?

 I noticed this line in the log:

 Effective SlaveRestarter on master: null

 Could this be correlated to the above poll log message?


 Kind Regards,
 Sebastian

 -- 
 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
 mailto: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 a topic in the
 Google Groups Jenkins Users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/jenkinsci-users/bDPXXj4Hukg/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 jenkinsci-users+unsubscr...@googlegroups.com
 mailto:jenkinsci-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



signature.asc
Description: OpenPGP digital signature


Re: maven plugin - how to obtain the jenkins user name

2014-05-05 Thread Mauro Flores


 Then you do mean the user who initiated the job; note that this does not 
 necessarily mean a user who was logged in, as jobs can be started by 
 'anonymous' (from an SCM trigger for example), or via the API.


I'm aware of it. 

The Build object itself should have a record of the user who initiated it


I've been searching and testing the content of the MavenProject api 
(including getBuild) with no success. No property from Build seems to have 
this information. 
http://maven.apache.org/ref/3.2.1/maven-model/apidocs/org/apache/maven/model/Build.html

 
Em segunda-feira, 5 de maio de 2014 16h38min30s UTC-3, Kevin Fleming 
escreveu:

 Then you do mean the user who initiated the job; note that this does not 
 necessarily mean a user who was logged in, as jobs can be started by 
 'anonymous' (from an SCM trigger for example), or via the API.

 The Build object itself should have a record of the user who initiated it, 
 there's no need to talk to the Jenkins/Hudson objects to see who is logged 
 in, and in fact that would not work in a build step anyway because they 
 don't run in the same environment.

 - Original Message -
 From: jenkins...@googlegroups.com javascript:
 To: jenkins...@googlegroups.com javascript:
 Cc: Kevin Fleming (BLOOMBERG/ 731 LEXIN) javascript:
 At: May 5 2014 15:27:54

 I mean the user that is logged on jenkins and started a jenkins job that 
 in the build step refers a pom.xml that declares this plugin. 



 Em segunda-feira, 5 de maio de 2014 14h21min39s UTC-3, Kevin Fleming 
 escreveu:

 What do you mean by 'running'? Does this plugin provide a build step, a 
 publisher, or something else? If it provides something that is used during 
 a build, then you want the user who initiated the build.

 - Original Message -
 From: jenkins...@googlegroups.com
 To: jenkins...@googlegroups.com
 Cc: bma...@batmat.net
 At: May 5 2014 12:49:10

 I'd like to log who is running this maven plugin.  
 I thought I could access the jenkins user from a simple maven plugin 
 running on jenkins.. I'm afraid I'll have to build (or extend) a jenkins 
 plugin to achieve that. 

 Regards. Mauro. 

 Em sábado, 3 de maio de 2014 12h04min32s UTC-3, Baptiste Mathus escreveu:

 Well, no indeed. Maven is an independent project and generally runs out 
 of Jenkins.

 Maybe you should explain a bit more what you are trying to achieve.

 Cheers
 Le 1 mai 2014 00:50, Mauro Flores mauroand...@gmail.com a écrit :

 Maybe I haven't expressed myself correctly. 


 I get a ClassNotFound exception for hudson.model.User. 

 Does a maven plugin (not a jenkins plugin) has access to jenkins 
 classpath ? 

 Regards. Mauro Flores. 

 Em terça-feira, 29 de abril de 2014 18h29min31s UTC-3, Mauro Flores 
 escreveu:

 Thanks. Michael. 

 A complementary question. 

 Do I have to add the jar of this class hudson.model.User to my maven 
 plugin jar? Or the classpath of jenkins is visible to the execution of my 
 maven plugin?
 If I have to add, can you help how to define the dependency. 
 If I do like below I lot of jars are brought. 

 dependency
 groupIdorg.jenkins-ci.main/groupId
 artifactIdjenkins-core/artifactId
 version1.543/version
 /dependency


 Em sábado, 26 de abril de 2014 11h59min44s UTC-3, Michael Clarke 
 escreveu:

 Use 
 User.current()http://javadoc.jenkins-ci.org/hudson/model/User.html#current()


 On 25 April 2014 23:17, Mauro Flores mauroand...@gmail.com wrote:

 Hello, 

 I'm building a maven plugin. 
 I'd like to access the name of the user logged on jenkins inside the 
 maven plugin. 

 Regards. Mauro. 


 -- 
 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.


 -- 
 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.

 -- 
 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.

 -- 
 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 javascript:.
 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 

Re: Jenkins slave appear offline - SSHLauncher threads BLOCKED

2014-05-05 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
Unfortunately it's not possible to reconnect to an SSH session; if the session 
is disconnected, the SSH daemon on the receiving end will close its end, and 
kill any processes that had been launched by that connection. In other words, 
any job that was running will be lost.

- Original Message -
From: jenkinsci-users@googlegroups.com
To: jenkinsci-users@googlegroups.com
At: May  5 2014 17:19:46

Hello Stephen,

Thank you for the informative reply. I look forward to your blog post!

To answer your question, we have approximately 2 dozen standard ssh Linux 
slaves, and about 10 JNLP Windows slaves to support various 
platform/configurations.

Based on the build history, sometimes we have up to 10 jobs running 
concurrently. Not 24x7, approximately once every 2 hours, and queue is pretty 
much empty most of the time. I would qualify the system as light traffic.

From your reply, I am even more concerned with disproportionally high number 
of the blocked threads (120) compare to offline slaves (2 at the time), as it 
sounds like it should be closer to 1:1? Also, do you know if the standard ssh 
connector performs a timeout and reconnect or does it block indefinitely? Not 
sure if each attempt to reconnect is spawning off new blocked threads?!

Let me know if there is any other information which could prove to be useful.

Charles

On Monday, May 5, 2014 12:42:23 PM UTC-7, Stephen Connolly wrote:

How many slaves do you have?

It is rather easy to saturate a server with a small number of ssh-slaves based 
slaves.

For example, on an AWS m3.large class machine, 10 ssh-slaves concurrently 
building jobs as chatty as the mock-load-builder job type is the most you can 
push.

If you use JNLP slaves, you can get close to 60 concurrent builds before the 
system starts falling over.

The CloudBees NIO ssh-slaves plugin (part if the enterprise offering) has a 
different performance characteristic... My most recent tests I was able to get 
up to 120 concurrent builds, without affecting the Jenkins UI (I only had set 
up for that number of slaves... It likely can go further, though m3.large is 
not beefy enough) what was affected though we're build times. The builds were 
2-3 times slower due to back-pressure effects causing the builds to block on 
STDOUT.

If anyone else is interested, we will be releasing our scalability test harness 
(actually I will be ripping the bottom out of the acceptance test framework and 
putting the scalability harness in its place... But the harness is also useful 
for scalability testing). We will also be publishing our findings.

The other thing to watch is how your entropy pool is holding up. The default 
random source in Linux typically gets exhausted quite quickly. That can cause 
your ssh slaves to fail ping tests and timeout/block

I think the package you want to install is haveged

That or switch java to /dev/urandom

Note: I am currently not recommending any specific slave connector, there are 
trade-offs with each type of connector. I will be writing up a blog post in the 
near future discussing the various trade-offs.

Standard ssh-slaves degrades poorly... This is great if you want to know when 
you have reached your limit

NIO ssh-slaves degrades gracefully, I need to determine where it starts 
degrading relative to standard ssh-slaves, but if UI responsiveness is more 
important than build times then this has advantages (though you need to be a 
paying cloudbees customer)

JNLP scales the highest without affecting build times, but degrades fastest, is 
a poor fit for on-demand connection/retention strategies and does not offer the 
same transport encryption security as the ssh- versions

Those are just the brief high-level measures

On Monday, 5 May 2014, Charles Chan charles...@gmail.com wrote:

Hello,

One of the issue we have recently been experiencing with Jenkins is that the 
slaves (node) would go offline for no apparent reason and would not reconnect 
automatically.
When slaves appear as offline, we tried to launch/reconnect the slave manually 
but it does not work either. However, we are able to SSH into the machine using 
PuTTy.
The only workaround is to restart the Jenkins server, until the problem 
surfaces again. (Typically in a week.)

Instance Information

Jenkins Server:1.562
SSH Credentials Plugin:1.6.1
SSH Slaves Plugin  1.6

Thread dump of slave node:
{dump}
Channel reader thread: qa-linbuild-02 prio=5 WAITING 
java.lang.Object.wait(Native Method) 
java.lang.Object.wait(Object.java:485) 
com.trilead.ssh2.channel.ChannelManager.waitUntilChannelOpen(ChannelManager.java:109)
 
com.trilead.ssh2.channel.ChannelManager.openSessionChannel(ChannelManager.java:583)
 com.trilead.ssh2.Session.init(Session.java:41) 
com.trilead.ssh2.Connection.openSession(Connection.java:1129) 
com.trilead.ssh2.SFTPv3Client.init(SFTPv3Client.java:99) 

Re: Jenkins slave appear offline - SSHLauncher threads BLOCKED

2014-05-05 Thread Charles Chan
On Monday, May 5, 2014 2:26:19 PM UTC-7, Kevin Fleming wrote:

 Unfortunately it's not possible to reconnect to an SSH session; if the 
 session is disconnected, the SSH daemon on the receiving end will close its 
 end, and kill any processes that had been launched by that connection. In 
 other words, any job that was running will be lost.


Fair enough. If the ssh session is disconnected, the existing job shall be 
terminated and the slave appears offline.

It appears Jenkins has the ability to automatically reconnect via SSH 
(bring the slave online) but is blocked. Subsequent attempts to reconnect 
manually will then fail as well until a server restart -- even if the slave 
is accessible via PuTTy. 

It would be nice to be able to figure out how these SSHLauncher threads 
were spawned in the first place, the root cause of the blocked threads, and 
how to recover from the incident after. 

-- 
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.


Failing Jobs

2014-05-05 Thread Jared Griffith
I upgraded to the latest version of Jenkins as well as updated all of the
plug ins.  Since doing so, I'm having several jobs which normally complete
correctly fail.  They are failing with the following message:
Warning: this build has no associated authentication, so build permissions
may be lacking, and downstream projects which cannot even be seen by an
anonymous user will be silently skipped

This is happening even on jobs that have no downstream projects.

-- 

Jared Griffith
Linux Administrator, PICS Auditing, LLC
P: (949) 936-4574
C: (909) 653-7814

http://www.picsauditing.com

17701 Cowan #140 | Irvine, CA | 92614

Join PICS on LinkedIn and Twitter!

https://twitter.com/PICSAuditingLLC

-- 
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.


Cpptest Plugin failed to link to job source code

2014-05-05 Thread 于兴红
hello,
I'm setting up a job to inspect our code using cpptest plugin, and seems 
depending on static code analysis plugin.
the parasoft's cpptest in the build environment works well, and Cpptest 
warnings are well collected too. but when we look into the warning details 
reported by plugins, which is a hyperlink to actual source code file. it 
shows:

01 Copying the source file '/a
c_realinfo_srvd/ac_realinfo_srvd/ac_realinfo_data_proc.c' f
rom the workspace to the build folder 'C:
\.jenkins\jobs\wacap1.8_inspection\builds\2014-05-05_20-44-43
\workspace-files\ef148ebb.tmp' on the Jenkins master failed.
02 Is the file '/ac_realinfo_srvd/ac_realinfo_srvd/ac_realinfo_data_proc.c
' a valid filename?
03 If you are building on a slave: please check *if *
the file is accessible under '$JENKINS_HOME/[job-name]
//ac_realinfo_srvd/ac_realinfo_srvd/ac_realinfo_data_proc.c'
04 If you are building on the master: please check *if *
the file is accessible under '$JENKINS_HOME/[job-name]/workspace
//ac_realinfo_srvd/ac_realinfo_srvd/ac_realinfo_data_proc.c'
05 
java.io.IOException: remote file operation failed: 
/ac_realinfo_srvd/ac_realinfo_srvd/ac_realinfo_data_proc.c at 
hudson.remoting.Channel
@f9f7bc:compiler_1.75
06   at hudson.FilePath.act(FilePath.java:916)
07   at hudson.FilePath.act(FilePath.java:893)
08   at hudson.FilePath.copyTo(FilePath.java:1821)
09   
at 
hudson.plugins.analysis.core.HealthAwareRecorder.copyFilesWithAnnotationsToBuildFolder
(HealthAwareRecorder.java:398)
10   at hudson.plugins.analysis.core.HealthAwarePublisher.perform(
HealthAwarePublisher.java:165)
11   at hudson.plugins.analysis.core.HealthAwareRecorder.perform(
HealthAwareRecorder.java:333)
12   at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
13   at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
AbstractBuild.java:745)
14   
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(
AbstractBuild.java:709)
15   at hudson.model.Build$BuildExecution.post2(Build.java:182)
16   at hudson.model.AbstractBuild$AbstractBuildExecution.post(
AbstractBuild.java:658)
17   at hudson.model.Run.execute(Run.java:1734)
18   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
19   at hudson.model.ResourceController.execute(ResourceController.java:88)
20   at hudson.model.Executor.run(Executor.java:231)
21 
Caused by: java.io.FileNotFoundException: 
/ac_realinfo_srvd/ac_realinfo_srvd/ac_realinfo_data_proc.c 
(没有那个文件或目录)
22   at java.io.FileInputStream.open(Native Method)
23   at java.io.FileInputStream.init(FileInputStream.java:138)
24   at hudson.FilePath$37.invoke(FilePath.java:1826)
25   at hudson.FilePath$37.invoke(FilePath.java:1821)
26   at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2474)
27   at hudson.remoting.UserRequest.perform(UserRequest.java:118)
28   at hudson.remoting.UserRequest.perform(UserRequest.java:48)
29   at hudson.remoting.Request$2.run(Request.java:328)
30   at hudson.remoting.InterceptingExecutorService$1.call(
InterceptingExecutorService.java:72)
31   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
32   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
33   at java.util.concurrent.ThreadPoolExecutor.runWorker(
ThreadPoolExecutor.java:1110)
34   at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:603)
35   at java.lang.Thread.run(Thread.java:722)


here are my job configure details:
1. i'm using jenkins svn plugin checkout all my source code to *home/wns/source 
*in the job's workspace, using this specific directory is because i need to 
chroot to this workspace to build the job.
2. my jenkins master is a windows server, and this job is built on a linux 
node as jenkins slave.
3. as my job contains many source directories. so i scaned some part of the 
directories, and save the cpptest reports to *home/cpptest/report/*/report.xml 
*in the job's workspace, and the * indecates the module name i scaned.
4. according to the error message reported, I copied code like 
ac_realinfo_srvd/ac_realinfo_srvd/ac_realinfo_data_proc.c to my job's 
workspace on the slave node, at the end of the building script. still not 
work.

so, how to make the plugins can find my source code, am i miss something?

looking forward for any help
thank you. :-)

-- 
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.