Re: No new jobs are created after upgrading to 1.560 (polling plugin reports no changes when there are)

2014-04-23 Thread sledz
Am Mittwoch, 23. April 2014 20:32:36 UTC+2 schrieb Michael Beck:
>
> I had the same issue but found a workaround to fix it for now. I only have 
> a few jobs so everything runs on my master node. For some reason the jobs 
> that need to be submitted for polling won't succeed because they don't see 
> any available nodes/slaves to run on, they're ignoring running on the 
> master. I worked around this problem by adding a fake slave node in order 
> to get the "Restrict where this project can be run" option back in 
> configure on my jobs. I then had to set the label for each of those jobs to 
> 'master' in order for polling to start working again. I'm also using 
> mercurial:1.50
>

Can you give some detailed instructions for this workaround? I'm not 
familiar with this nodes/slaves stuff.

Thx
Steffen 

-- 
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: No new jobs are created after upgrading to 1.560 (polling plugin reports no changes when there are)

2014-04-23 Thread sledz
Same problem here for jobs using Multiple SCMs 
plugin(0.3) 
*and 
*GIT plugin (2.2.1). 
Jobs using only the GIT plugin work well.

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


How to check and set the threshold for health metrics?

2014-04-23 Thread Pavel Kudrys
Hi, 

>From time to time, Jenkins shows me a below message:
*"Jenkins took some slaves offline because their key health metrics went 
below a threshold. If you don’t want Jenkins to do this, change the 
setting"*

Is there a way to see what metric makes the slave offline and mainly, how 
to change the threshold for these metrics? I'm particularly interested 
about threshold setting for "*Response Time*".

Thank you in advance!

Have a nice day,
Pavel

-- 
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: Condition to perform a night build ONLY if there was committed something to SCM during the day

2014-04-23 Thread Richard Bywater
Perhaps the best bet might be to have two jobs - one for the smoke test
that you have polling already, and a new one that does the full test and
has the polling as suggested?

Richard.


On Thu, Apr 24, 2014 at 6:02 PM, Pavel Kudrys  wrote:

> Hi,
>
> Thanks for the suggestion!
>
> The problem is, I already use poll SCM schedule for daily builds (with
> smoke test). So if I add your suggested timing to the existing daily
> schedule, would not it just pass without building anything at night?
>
> I mean, during the day, there may be several commits from the developers.
> And after each commit, build & *smoke test* is started based of the
> existing "daily" poll scm schedule (poll every 15 minutes from Mon-Fri).
> Now if I add your suggested timing, nothing will happen when the "night
> build" time is reached, because there will be nothing new in the SCM from
> the last daily build. Or am I wrong?
>
> See the attached image showing our current build schedule setup. All I
> want to do is to skip the night build & *full test* in (rare) case when
> there is nothing new committed to the SCM during the day. And always
> perform the night build & *full test*, in case there was something
> committed.
>
> Thank you in advance!
>
> Have a nice day,
> Pavel
>
> On Tuesday, 22 April 2014 14:39:56 UTC+2, rginga wrote:
>
>>  Just use the Poll SCM and set it for something like “H 20 * * *” to
>> poll nightly at 10 PM
>>
>>
>>
>> *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On
>> Behalf Of *Pavel Kudrys
>>
>> *Sent:* Tuesday, April 22, 2014 3:29 AM
>> *To:* jenkins...@googlegroups.com
>>
>> *Subject:* Condition to perform a night build ONLY if there was
>> committed something to SCM during the day
>>
>>
>>
>> Hi folks,
>>
>> Does anyone have an idea what kind of condition should I create in the
>> Conditional BuildStep Plugin to perform a night build only if there was
>> committed something to SCM during the day? In other words, I just want to
>> perform a night build ONLY in case there was previously performed (during
>> the day) a "Poll SCM changes" based build.
>>
>> At the moment, our jobs are configured to perform "DAILY" builds based of
>> polling SMC changes and the time scheduled "NIGHTLY" builds, which are
>> performed regardless if there was committed something in the SCM. I would
>> like to change that.
>>
>> Is that possible with the Conditional BuildStep Plugin or should I use
>> different plugin for this?
>>
>> Thank you in advance!
>>
>> Have a nice day,
>> Pavel Kudrys
>>
>> --
>> 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: ldap authentication does not work

2014-04-23 Thread David Chou
Great! I have the same issue on Jenkins 1.559 / Windows 2008 R2 and 
resolved by your suggestion. Thanks!

bara...@gmail.com於 2013年4月5日星期五UTC+8下午7時29分57秒寫道:
>
> Hello,
>
> I can't get ldap authentication to work with Jenkins 1.505/Windows7 and 
> Jenkins 1.466/Ubuntu and I'm really stumped because even the Wireshark 
> output below looks fine to me.
>
> The LDAP settings are:
>
> Server: ldap.mydomain.de:389
> Root DN:DC=mydomain,DC=de
> User Search Base:   OU=Software
> User Search Filter: sAMAccountName={0}
> Group Search Base:
> Manager DN: CN=jenkins,OU=Software,dc=mydomain,dc=de
> Manager Password:   xxx
>
> There are no problems here, the manager doesn't cause any errors.
>
> Attempt A)
> When I try to login with my username/password I get a connection refused 
> error which is really weird:
>
> 05.04.2013 12:00:36 hudson.security.AuthenticationProcessingFilter2 
> onUnsuccessfulAuthentication
> INFO: Login attempt failed
> org.acegisecurity.AuthenticationServiceException: LdapCallback;null; 
> nested exception is javax.naming.PartialResultException [Root exception is 
> javax.naming.CommunicationException: mydomain.de:389 [Root exception is 
> java.net.ConnectException: Connection refused: connect]]; nested exception 
> is org.acegisecurity.ldap.LdapDataAccessException: LdapCallback;null; 
> nested exception is javax.naming.PartialResultException [Root exception is 
> javax.naming.CommunicationException: mydomain.de:389 [Root exception is 
> java.net.ConnectException: Connection refused: connect]]
> at 
> org.acegisecurity.providers.ldap.LdapAuthenticationProvider.retrieveUser(LdapAuthenticationProvider.java:238)
> at 
> org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:122)
> ...
> 
>
> Attempt B)
> When I try to log in with a wrong password I get a bad credentials 
> exception which is good.
>
> 05.04.2013 12:33:43 hudson.security.AuthenticationProcessingFilter2 
> onUnsuccessfulAuthentication
> INFO: Login attempt failed
> org.acegisecurity.BadCredentialsException: Bad credentials
> at 
> org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:125)
> at 
> org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:200)
> ...
> 
>
> So I traced what happens for Attempt A with Wireshark.
>
> It actually binds as the user John Doe then finds the details for John Doe 
> successfully then it unbinds and in the end it searches for the groups of 
> user John Doe and finds those succesfully but Jenkins still does not 
> authenticate me.
>
> No. TimeSourceDestination   Protocol 
> Length Info
> 319 10.394879   192.168.100.103   192.168.100.6 LDAP 
> 169searchRequest(4) "OU=Software,DC=mydomain,DC=de" wholeSubtree 
> 321 10.395846   192.168.100.6 192.168.100.103   LDAP 
> 215searchResEntry(4) "CN=John Doe,OU=Software,DC=mydomain,DC=de" 
> 326 10.402801   192.168.100.103   192.168.100.6 LDAP 
> 154bindRequest(1) "CN=John Doe,OU=Software,DC=mydomain,DC=de" simple 
> 327 10.404332   192.168.100.6 192.168.100.103   LDAP 
> 76 bindResponse(1) success 
> 328 10.405094   192.168.100.103   192.168.100.6 LDAP 
> 171searchRequest(2) "CN=John Doe,OU=Software,DC=mydomain,DC=de" 
> baseObject 
> 330 10.405911   192.168.100.6 192.168.100.103   LDAP 
> 215searchResEntry(2) "CN=John Doe,OU=Software,DC=mydomain,DC=de" 
> 332 10.406506   192.168.100.103   192.168.100.6 LDAP 
> 61 unbindRequest(3) 
> 337 10.407207   192.168.100.103   192.168.100.6 LDAP 
> 324searchRequest(5) "DC=mydomain,DC=de" wholeSubtree 
> 339 10.425127   192.168.100.6 192.168.100.103   LDAP 
> 521searchResEntry(5) "CN=Terminal,CN=Users,DC=mydomain,DC=de"  | 
> searchResEntry(5) "CN=Software,DC=mydomain,DC=de"  | searchResEntry(5) 
> "CN=Admins,DC=mydomain,DC=de"  | searchResRef(5)  | searchResDone(5) 
> success  [3 results]
>
>
> This looks like a bug to me, what do you think?
>
> Regards,
>
> Kevin
>
>

-- 
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: Condition to perform a night build ONLY if there was committed something to SCM during the day

2014-04-23 Thread Pavel Kudrys


Hi, 

Thanks for the suggestion! 

The problem is, I already use poll SCM schedule for daily builds (with 
smoke test). So if I add your suggested timing to the existing daily 
schedule, would not it just pass without building anything at night? 

I mean, during the day, there may be several commits from the developers. 
And after each commit, build & *smoke test* is started based of the 
existing "daily" poll scm schedule (poll every 15 minutes from Mon-Fri). 
Now if I add your suggested timing, nothing will happen when the "night 
build" time is reached, because there will be nothing new in the SCM from 
the last daily build. Or am I wrong? 

See the attached image showing our current build schedule setup. All I want 
to do is to skip the night build & *full test* in (rare) case when there is 
nothing new committed to the SCM during the day. And always perform the 
night build & *full test*, in case there was something committed.

Thank you in advance!

Have a nice day,
Pavel

On Tuesday, 22 April 2014 14:39:56 UTC+2, rginga wrote:
>
>  Just use the Poll SCM and set it for something like “H 20 * * *” to poll 
> nightly at 10 PM
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Pavel Kudrys
> *Sent:* Tuesday, April 22, 2014 3:29 AM
> *To:* jenkins...@googlegroups.com 
> *Subject:* Condition to perform a night build ONLY if there was committed 
> something to SCM during the day
>
>  
>  
> Hi folks,
>
> Does anyone have an idea what kind of condition should I create in the 
> Conditional BuildStep Plugin to perform a night build only if there was 
> committed something to SCM during the day? In other words, I just want to 
> perform a night build ONLY in case there was previously performed (during 
> the day) a "Poll SCM changes" based build. 
>
> At the moment, our jobs are configured to perform "DAILY" builds based of 
> polling SMC changes and the time scheduled "NIGHTLY" builds, which are 
> performed regardless if there was committed something in the SCM. I would 
> like to change that.
>
> Is that possible with the Conditional BuildStep Plugin or should I use 
> different plugin for this? 
>
> Thank you in advance!
>
> Have a nice day,
> Pavel Kudrys
>  
> -- 
> 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.


Jenkins Consultanat

2014-04-23 Thread Daryl Hobbs
Hi
New to Jenkins and I wanted to say HI :-)
I am a recruiter in Canada and one of my clients in Victoria British 
Columbia Canada on Vancouver Island needs a Jenkins Consultant,
If anyone is able to work in Canada and would like more information please 
contact me.
Thank you for your help and interest.
Daryl Hobbs
dar...@staffingexchange.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: BUILD FLOW parallel closure simple example

2014-04-23 Thread pjl83211
Thanks for the suggestion.. .but same result

On Wednesday, April 23, 2014 11:55:29 AM UTC-7, Marc MacIntyre wrote:
>
> I assume that you only end up defining one curClosure variable, since it 
> never goes out of scope, and subsequent changes to it update the one 
> version you've added to your buildClosures list.
>
> Maybe you want buildClosures.add(curClosure.clone()) 
>

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


Integrating Jenkins with Xenserver - no success

2014-04-23 Thread Stephan Hochhaus
Hello fellow Jenkins-users :)

I am trying to improve my Jenkins setup to create and destroy xen virtual 
machines on my local Xenserver 6.2. I came across the libvirt-slaves plugin 
which allows me to configure a hypervisor. I tried but always end up with 
an error. I suspect that libvirt does not play nicely with Xenserver, so I 
was wondering if anyone here has had any success so far with using Jenkins 
and a Xenserver environment.

I am running Jenkins 1.560 on a Debian Wheezy (7) box, which is in fact a 
virtual machine running inside the xenserver.

Any advice is appreciated, otherwise I might as well start putting some 
shell scripts together that mimic libvirt's remote management capabilities 
and wraps xe...

Cheers!
Stephan

-- 
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 FLOW parallel closure simple example

2014-04-23 Thread Marc MacIntyre
I assume that you only end up defining one curClosure variable, since it
never goes out of scope, and subsequent changes to it update the one
version you've added to your buildClosures list.

Maybe you want buildClosures.add(curClosure.clone())

-- 
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 FLOW parallel closure simple example

2014-04-23 Thread pjl83211
I need to run a number of parameterized jobs in a parallel fashion, and 
decided to try a simple example I recall seeing.

/ Build Flow TestHarness 
/

// construct and collect closures for LATER execution
buildClosures = []
for (int i=1; i<50; i++) {
def curClosure = {
   build("TestParameterized", Parameter: i)
}
buildClosures.add(curClosure)
}
// execute the closures in buildClosures in parallel
parallel(buildClosures)
/

TestParameterized contains the simple groovy script below:

/ SCRIPT 
///
import hudson.model.*

def parameter = build.buildVariableResolver.resolve("Parameter")
println "parameter:"+ parameter  

def long recursiveFib(long n) {
if (n == 0) {
return 0
} else if (n == 1) {
return 1
}
return recursiveFib(n - 1) + recursiveFib(n - 2)
}

def result = recursiveFib(33)  
println "recursiveFib:"+result

/

When I run this the console output in build flow testharness task is

parallel {
Schedule job TestParameterized 

Schedule job TestParameterized 

Schedule job TestParameterized 

.

.
Build TestParameterized #12 
 started
Build TestParameterized #12 
 started
Build TestParameterized #12 
 started
.

.
TestParameterized #12  
completed 
TestParameterized #12  
completed 
TestParameterized #12  
completed 
.

.
Build TestParameterized #13 
 started
Build TestParameterized #13 
 started
Build TestParameterized #13 
 started
.

.
TestParameterized #13  
completed 
TestParameterized #13  
completed 
TestParameterized #13  
completed 
.

.
}
Finished: SUCCESS


Which shows just two TestParameterized task being created (multiple times),

and reviewing the console for these two tasks #12, #13 the parameter passed in 
is always 50.


What I was expecting to see was 50 TestParameterized jobs with increasing 
parameter value 1 to 50.


What am I missing?


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: No new jobs are created after upgrading to 1.560 (polling plugin reports no changes when there are)

2014-04-23 Thread Michael Beck
I had the same issue but found a workaround to fix it for now. I only have 
a few jobs so everything runs on my master node. For some reason the jobs 
that need to be submitted for polling won't succeed because they don't see 
any available nodes/slaves to run on, they're ignoring running on the 
master. I worked around this problem by adding a fake slave node in order 
to get the "Restrict where this project can be run" option back in 
configure on my jobs. I then had to set the label for each of those jobs to 
'master' in order for polling to start working again. I'm also using 
mercurial:1.50.

- Mike

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


Variable $sha1 not being set in pull-request-builder plugin

2014-04-23 Thread cyclops
I've installed the github pull-request-builder package, on an EC2 Ubuntu 
server, and gotten it *mostly* working. The one problem I have is with the 
branch-specifier. The docs say set it to ${sha1}. That didn't work, and 
when I wrote a Python script to dump the os.environ() variables, it doesn't 
appear to be set. Everything else seems to be working - when I set the 
branch-specifier to a specific SHA, or reference such as origin/pr/4/head, 
it correctly gets the branch, builds it, and sends back a commit-status 
message to Github. So my general configuration (tokens, URLs, etc) is 
correct. The only thing missing is $sha1.

I've looked over the packages installed as dependencies, and don't see 
anything obvious where it would be configured - what sets this variable? 
Thanks.

I did discover another plugin, token-macro, that seems like it would be 
responsible for expanding the variable. But that still doesn't tell me what 
generates it.

John C>
(this maybe a duplicate on the email list, but it doesn't seem to be 
showing up on the Google-groups website.)

-- 
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 not sending the "Build is back to normal" messages

2014-04-23 Thread Richard Oliver Legendi
Hi all,

I recently found out that our Jenkins (v1.538) stopped sending out the Build is 
back to normal e-mails. The strange thing is that it does send out the Build 
failed messages, but only those.

I checked the logs but haven't found anything that could describe the issue. 
The job outputs says that Sending e-mails to: ... at the end of the logs but I 
don't get these e-mails.

I've also checked the mail.err (empty), the mail.log (seems all messages are 
handled) and the Jenkins log files, but I have no clue about the issue. Any 
other suggestions where to look for any hints?

Has anybody seen something like this before? Any hints how may I solve the 
problem? Google showed up nothing useful for me.

I've asked around and the others say that it used to send those kind of mails 
~2 months ago, but since then they disappeared in the abyss :-)

Thanks in advance!

Best,
Richard

-- 
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: Problems with memory usage on 1.560

2014-04-23 Thread Larry Shatzer, Jr.
I've run into issues with the Clone Workspace plugin. Once I rolled back to
1.599, it went away. Have you tried to downgrade back to 1.559?

I've noticed that 1.559 uses Remoting 2.37, and 1.560 uses 2.39, and master
is currently on 2.40. I've not tried running this with what is on master
yet. I've been meaning to ping the IRC channel about this.

Here's my stacktrace:

Archiving workspace
ERROR: Publisher hudson.plugins.cloneworkspace.CloneWorkspacePublisher
aborted due to exceptionhudson.remoting.RequestAbortedException
:
hudson.remoting.RequestAbortedException: java.io.IOException:
Unexpected reader termination
at 
hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:41)

at 
hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:34)

at hudson.remoting.Request.call(Request.java:174)

at hudson.remoting.Channel.call(Channel.java:738)

at hudson.FilePath.act(FilePath.java:909)

at hudson.FilePath.act(FilePath.java:893)

at hudson.FilePath.archive(FilePath.java:423)

at hudson.FilePath.tar(FilePath.java:2047)

at 
hudson.plugins.cloneworkspace.CloneWorkspacePublisher.snapshot(CloneWorkspacePublisher.java:231)

at 
hudson.plugins.cloneworkspace.CloneWorkspacePublisher.perform(CloneWorkspacePublisher.java:178)

at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)

at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:740)

at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:710)

at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1036)

at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:659)

at hudson.model.Run.execute(Run.java:1728)

at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:525)

at hudson.model.ResourceController.execute(ResourceController.java:88)

at hudson.model.Executor.run(Executor.java:231)

Caused by: hudson.remoting.RequestAbortedException
:
java.io.IOException: Unexpected reader termination
at hudson.remoting.Request.abort(Request.java:299)

at hudson.remoting.Channel.terminate(Channel.java:801)

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

Caused by: java.io.IOException


No new jobs are created after upgrading to 1.560 (polling plugin reports no changes when there are)

2014-04-23 Thread robert . buchholz

Hello list,


this week, I updated a jenkins instance on centos 6.5, it was a combined 
update to jenkins-1.560-1.1.noarch (from the very own jenkins yum 
repository), and an update to 
java-1.6.0-openjdk-1.6.0.0-5.1.13.3.el6_5.x86_64.

Among others, I am using the plugin org.jenkins-ci.plugins:mercurial:1.50. 
A job running on the master itself should poll the repository and build it, 
but does not. The polling log says:
Started on Apr 23, 2014 1:59:54 PM
We need to schedule a new build to get a workspace, but deferring 799ms in 
the hope that one will become available soon 
(all_suitable_nodes_are_offline)
Done. Took 0 ms
No changes

However, when I start a build manually, it will pick up the changes (but 
the same situation happens again after that).
This happened with mercurial plugin 1.49 before as well.

Any idea how to debug this?

Cheers,

Robert

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


common config between multiple build steps in single plugin...

2014-04-23 Thread qadeer786
Hi,
I am newbie to developing plugins in Jenkins and currently stuck at a point 
where i need to decide on how i should be proceeding with the development..
 
If i need to write a jenkins plugin with multiple build steps, is it 
possible for these build steps to share a common config (as in the common 
plugin detail from global.jelly) ? 
 

Eg: Lets say my plugin adds the following new steps.. Build Step, Deploy 
Step, Test & Coverage step All these three would have their own extension 
points in respective classes (PluginBuildStep, PluginDeployStep, 
PluginTestStep) and a common class PluginMain which has all the common 
properties and the global.jelly 
I tried doing this by extending common classes, but i see 3 repititions of 
global.jelly sections on the global configurations section.. Any pointers 
on how this can be done ? or am i on the wrong track (ie. each build step 
should have its own configuration and should not be sharing configuration 
with other build steps..?)
 
Thanks,
Qadeer

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


Variable $sha1 not being set in pull-request-builder plugin

2014-04-23 Thread cyclops
I've installed the github pull-request-builder package, on an EC2 Ubuntu 
server, and gotten it *mostly* working. The one problem I have is with the 
branch-specifier. The docs say set it to ${sha1}. That didn't work, and 
when I wrote a Python script to dump the os.environ() variables, it doesn't 
appear to be set. Everything else seems to be working - when I set the 
branch-specifier to a *specific* SHA, or reference such as 
*origin/pr/4/head*, it correctly gets the branch, builds it, and sends back 
a commit-status message to Github. So my general configuration (tokens, 
URLs, etc) is correct. The only thing missing is $sha1.

I've looked over the packages installed as depencies, and don't see 
anything obvious where it would be configured - what sets this variable? 
Thanks.

John C>
(hope this isn't a duplicate - tried to post yesterday, it hasn't shown up 
yet).

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


Problems setting branch-specifier in github-pull-request-builder plugin - $sha1 is not set.

2014-04-23 Thread cyclops


I've set up a simple Jenkins server on an Ubuntu EC2 server, and configured 
it to point to a Github repo (using a token for authentication). I've 
installed the github-pull-request-builder and required dependencies, and 
configured it as per the docs. It *almost* works - when I set the 
branch-specifier to a specific SHA (or path such as 'origin/pr/4/head', it 
works great.

However, when I set the branch-specifier to ${sha1}, it fails. And after 
setting the job to run a Python script, and print out os.environ(), it's 
not set - nor is anything else that seems to have a relative branch.

How does that variable get set? Am I missing something? As far as I can 
tell I followed the docs for setting it up. Thanks. And while I'm asking 
questions - what is the logic used to set sha1? Is it just the head of the 
highest-numbered pull-request branch?

John C>

Also asked on StackOverflow . 

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


JUnit test results not aggregated

2014-04-23 Thread Tarjei Knapstad
We have a project that creates several "testresults.xml" files in JUnit 
format when built. I've added "trunk/build/**/testresults.xml" under the 
"Publish JUnit test result report" which seems to work, but when the 
project is built Jenkins only picks up the first testresults.xml file and 
seems to ignore the rest. The files in question are generated by Catch 
(https://github.com/philsquared/Catch). I've tried other globs as well like 
"**/testresults.xml" and "**/*.xml" but they all give the same result.

The generated XML files look like this:

  




  


Any ideas?

Regards,
--
Tarjei Knapstad

-- 
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: Contributing fixes to plugins (perforce)

2014-04-23 Thread Niksan
I replied to the other post before seeing this. But my reply there was.

SDk1.7 has the exact same error, SDK1.6 works fine though so at least I can 
do something. I'll check out the dev-list cheers.

On Wednesday, April 23, 2014 1:42:24 PM UTC+1, Ullrich Hafner wrote:
>
> Can you retry with Java 1.7? 
>
> BTW: you would get more answers in the dev-list (CC)
>
> Am 23.04.2014 um 14:25 schrieb Niksan 
> >:
>
>
>

-- 
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: Contributing fixes to plugins (perforce)

2014-04-23 Thread Niksan
SDk1.7 has the exact same error, SDK1.6 works fine though so at least I can 
do something. I'll check out the dev-list cheers.

On Wednesday, April 23, 2014 1:42:24 PM UTC+1, Ullrich Hafner wrote:
>
> Can you retry with Java 1.7? 
>
> BTW: you would get more answers in the dev-list (CC)
>
> Am 23.04.2014 um 14:25 schrieb Niksan 
> >:
>
>
>

-- 
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: Contributing fixes to plugins (perforce)

2014-04-23 Thread Ulli Hafner
Can you retry with Java 1.7? 

BTW: you would get more answers in the dev-list (CC)

Am 23.04.2014 um 14:25 schrieb Niksan :

> I'm wanting, in particular to make some fixes to the perforce plugin, but I'm 
> having a problem compiling out of the box, I'm using the master branch from 
> github, jdk8 and maven 3.2.1 but I get errors, if I change the enforcer in 
> the POM to range from 1.6,1.9 I get 
> 
> [WARNING] Error injecting: org.jvnet.hudson.maven.plugins.hpi.AptCompiler
> java.lang.NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> ..
> ..
> 
> I've seen this posted before when people have been using sdk1.7.
> 
> Now I'm comfortable in fixing Java code, but have no idea when it comes to 
> the Maven POM file and what I should do to resolve the problem so I can start 
> compiling and fixing, is there a resource anywhere that I can look at to give 
> me a pointer on what I should do?  I tested this by just grabbing the zip 
> from github for the perforce plugin and invoking mvn install.
> 
> 
> Cheers.
> 
> 
> 
> -- 
> 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.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Contributing fixes to plugins (perforce)

2014-04-23 Thread Niksan
I'm wanting, in particular to make some fixes to the perforce plugin, but 
I'm having a problem compiling out of the box, I'm using the master branch 
from github, jdk8 and maven 3.2.1 but I get errors, if I change the 
enforcer in the POM to range from 1.6,1.9 I get 

[WARNING] Error injecting: org.jvnet.hudson.maven.plugins.hpi.AptCompiler
java.lang.NoClassDefFoundError: 
com/sun/mirror/apt/AnnotationProcessorFactory
at java.lang.Class.getDeclaredConstructors0(Native Method)
..
..

I've seen this posted before when people have been using sdk1.7.

Now I'm comfortable in fixing Java code, but have no idea when it comes to 
the Maven POM file and what I should do to resolve the problem so I can 
start compiling and fixing, is there a resource anywhere that I can look at 
to give me a pointer on what I should do?  I tested this by just grabbing 
the zip from github for the perforce plugin and invoking mvn install.


Cheers.


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


configure PEP8

2014-04-23 Thread Tim Mundt
Hi,

we are using the PEP8 violations plugin for Jenkins. It work very well, 
however, we'd like to configure the max-line-length. So I put

[pep8]
max-line-length = 130

into
{JENKINS_HOME}/.config/pep8
{WORKSPACE}/setup.cfg
{WORKSPACE}/tox.ini

None of this works, even after restarting Jenkins. When I su into a jenkins 
shell and execute pep8 manually, it respects the setting. I have seen other 
projects put their setting into the project root, so what am I missing here?

Regards
Tim 

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


Problems with memory usage on 1.560

2014-04-23 Thread Tobias Hieta
Hello,

I installed 1.560 the other day and I have seen a few of the following 
exceptions when building my (rather large) matrix builds:

00:12:32.091 FATAL: hudson.remoting.RequestAbortedException: 
java.io.IOException: Unexpected reader termination
00:12:32.130 hudson.remoting.RequestAbortedException: 
hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected 
reader termination
00:12:32.810 at 
hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:41)
00:12:32.810 at 
hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:34)
00:12:32.810 at hudson.remoting.Request.call(Request.java:174)
00:12:32.810 at hudson.remoting.Channel.call(Channel.java:738)
00:12:32.810 at 
hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:168)
00:12:32.810 at com.sun.proxy.$Proxy73.join(Unknown Source)
00:12:32.810 at 
hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:951)
00:12:32.810 at 
hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:137)
00:12:32.810 at 
hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:97)
00:12:32.810 at 
hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
00:12:32.810 at 
org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
00:12:32.810 at 
org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154)
00:12:32.810 at 
org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
00:12:32.810 at 
org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder.perform(SingleConditionalBuilder.java:108)
00:12:32.810 at 
hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
00:12:32.810 at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:740)
00:12:32.810 at hudson.model.Build$BuildExecution.build(Build.java:198)
00:12:32.810 at hudson.model.Build$BuildExecution.doRun(Build.java:159)
00:12:32.810 at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:519)
00:12:32.810 at hudson.model.Run.execute(Run.java:1703)
00:12:32.810 at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
00:12:32.810 at 
hudson.model.ResourceController.execute(ResourceController.java:88)
00:12:32.810 at hudson.model.Executor.run(Executor.java:231)
00:12:32.810 Caused by: hudson.remoting.RequestAbortedException: 
java.io.IOException: Unexpected reader termination
00:12:32.810 at hudson.remoting.Request.abort(Request.java:299)
00:12:32.810 at hudson.remoting.Channel.terminate(Channel.java:801)
00:12:32.810 at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:76)
00:12:32.810 Caused by: java.io.IOException: Unexpected reader termination
00:12:32.810 ... 1 more
00:12:32.810 Caused by: java.lang.OutOfMemoryError: Java heap space
00:12:32.810 at java.util.Arrays.copyOf(Arrays.java:2271)
00:12:32.810 at 
java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
00:12:32.810 at 
java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
00:12:32.810 at 
java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
00:12:32.810 at 
hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:87)
00:12:32.810 at 
hudson.remoting.ChunkedInputStream.read(ChunkedInputStream.java:46)
00:12:32.810 at 
hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:88)
00:12:32.810 at 
hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:33)
00:12:32.810 at 
hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
00:12:32.810 at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

I have tried to up the heap space both on the master node and on the 
slaves. I have currently given the master over 8GB of Heap Space and the 
Slaves around the same, but this still happens from time to time. First 
question, is this running out of memory on the master node or on the 
slaves? Secondly, should a matrix build with ~15 builds really use this 
much memory? Should I just up the heap space on the master node until it 
goes away or is there some code that have recently changed the memory usage?

Thanks,
Tobias

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