Re: fonts in junit trend graphs are unreadable

2012-04-20 Thread Didier Durand

Hello,

You should read 
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+got+java.awt.headless+problem

it may help you solve your issue

regards

didier

Le lundi 16 avril 2012 22:57:20 UTC+2, Alex Dean a écrit :
>
> I've just set up Jenkins to run PHPUnit tests. Everything is working 
> fine except that the junit trend graphs are very difficult to read. 
> The font is all wrong. 
>
> https://img.skitch.com/20120416-deuen41cigddrgt7nfyhmyi3f4.png 
>
> I'm unsure how to further research this issue. (Searches for 'trend 
> report font' & similar haven't produced anything useful.) Can anyone 
> offer any pointers? 
>
> thanks, 
> alex 
>
>
> Centos 5.6 
>
> $ java -version 
> java version "1.6.0_20" 
> OpenJDK Runtime Environment (IcedTea6 1.9.8) (rhel-1.22.1.9.8.el5_6- 
> x86_64) 
> OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode) 
>
> $ rpm -qa | grep jenkins 
> jenkins-1.460-1.1



Re: ERR_CONTENT_DECODING_FAILED when try to access job configuration pages

2012-04-16 Thread Didier Durand
Hi Jason,

I had this same problem with 1.458 on CentOS (due to the gzip page 
compression introduced then) 

see 
https://groups.google.com/forum/?fromgroups#!searchin/jenkinsci-users/cobertura/jenkinsci-users/OJxWOXpSsMs/ReNTRVSFkFAJ

I upgraded this morning to 1.460 and the problem disappeared: you may also 
try the update.

regards

didier

Le mardi 17 avril 2012 06:45:12 UTC+2, Jason Axelson a écrit :
>
> Hi,
>
> I'm getting "Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown
> error." in Chrome when I try to access job configuration pages.
> Firefox gives a more generic error but also cannot access it.
>
> This is on Jenkins 1.459 running on Ubuntu 11.10. Nothing is showing
> up in the Jenkins Log. This happens on all my projects even when I
> create a new job (can't even set any of the settings but it still
> creates the empty job). Does anyone have ideas what could cause this?
>
> I am about to try restarting after some builds finish. And it works
> after restarting but I still want to send this out in case anyone gets
> a similar error.
>
> It may be related to just installing 1.459 last Friday, not sure
> exactly which version I was on before that but it was probably around
> a month old.
>
> Thanks,
> Jason
>
>

Gzip compression of 1.458 in conflict with Cobertura plugin ?

2012-04-11 Thread Didier Durand
Hi everybody,

It seems that the gzip compression of pages introduced in 1.458 (see 
http://blog.cloudbees.com/2012/04/improvements-in-jenkins-you-dont-see.html) 
is in conflict with cobertura plugin: I can no longer access the nice 
graphical code coverage results produced by the Cobertura plugin since I 
upgraded.

My firefox says when I try to access the result page: *"Content Encoding 
Error - The page you are trying to view cannot be shown because it uses an 
invalid or unsupported form of compression."*
It does not say that for pages other jobs that are displayed perfectly.

Does anybody also experience that ?

regards

didier

Re: svn dilemna

2012-03-29 Thread Didier Durand
Hi Shanz,

We do also archive executable (jars) in jenkins for various reasons.

To avoid the out of synch issue that you mention, we create a  tagged (i.e 
named) backup of the sources via a "svn copy" in the subdir /tags of our 
svn.

Then, we check out the source from there, compile it and commit executable 
back: this way the issue that you mention doesn't show up.

PS: svn copy has 2 nice features: it is optimized (the files are not really 
copied, just backlinked to their souce) and the modification history is 
preserved for the copies.

regards

didier

Le jeudi 29 mars 2012 16:10:35 UTC+2, shanz a écrit :
>
> This is a subversion question rather than a Jenkins one I suppose. 
> Our build on Jenkins takes several hours.  Assume the build begins 
> with svn revision 700. 
> If someone commits to Jenkins' trunk (making revision 701) during 
> those build hours, then the resultant executable is out-of-step with 
> the repository.  We want to commit the resultant exe.  So the exe will 
> be on revision 702 but the exe wasn't built with the features 
> introduced with revision 701. 
>
> Is this a common problem?  Any solutions?



Re: Simple newbie question on how Post-build actions work...

2012-03-29 Thread Didier Durand
Hi Richard,

Generally speaking, you should never check-in results of tools produced 
elsewhere for use on Jenkins. You should rather implement those tools on 
your Jenkins server, run them there to obtain the results that you need in 
further steps of your Jenkins jobs.

regards

didier

Le jeudi 29 mars 2012 09:21:28 UTC+2, Richard Berger a écrit :
>
> OK, I think I figured it out... the key was that in the Advanced 
> settings for the "Invoke Ant" task, for the "Build File" I had put the 
> path to my eclipsestuff/workspace/project/build.xml - so all the 
> references inside that build.xml where being interpreted as relative 
> to "eclipsestuff". 
>
> Realizing that my build.xml will also exist in the Jenkins workspace, 
> I can specify THAT build.xml in the build file line.  I am running 
> into some other problems so I haven't fully verified this works.  But 
> it *feels* more correct. 
>
> Thanks for listening... (and if anyone can confirm that this the right 
> approach that would be much appreciated - on the other hand, if I am 
> totally lost, feel free to let me wander aimlessly for a 
> while :) :) ). 
>
> RB 
>
> On Mar 28, 11:58 pm, Richard Berger  wrote: 
> > I am playing with Jenkins (which seems really cool) and have a 
> > question on coordinating Post-build actions, for example "Publish 
> > FindBugs analysis results". 
> > 
> > I started this project in Eclipse and the code resides in the 
> > directory eclipsestuff/workspace/project (not the real name).  The 
> > code is also checked into SVN.  When I update a file, this correctly 
> > triggers a build.  In my build.xml file there is the FindBugs task, 
> > which creates an output file of "output.xml".  From within Eclipse, it 
> > all works fine. 
> > 
> > Now, when I set up the project in Jenkins, I have to enter something 
> > for the "FindBugs results" file.  And, more specifically, that file 
> > name has to be in my "Jenkins workspace", which is pulled from SVN (or 
> > at least I couldn't find a way to specify a path to eclipsestuff/ 
> > workspace/project/output.xml).  So I think that my output.xml results 
> > need to get checked into SVN so that Jenkins can then pull them back 
> > out to do the FindBugs analysis.  But that doesn't seem right either. 
> > 
> > I "solved" this by having the ant task (inside my build.xml) create 
> > the output.xml in trunk/Project/output.xml.  But that seems somehow 
> > wrong. 
> > 
> > Before I apply this "solution" to checkstyle and Junit, I thought I 
> > should check in and get some advice.  I have a feeling I am missing 
> > something very obvious.  (My question seems a little similar tohttp://
> groups.google.com/group/jenkinsci-users/browse_thread/thread/b..., 
> > but even simpler). 
> > 
> > Thanks!!! 
> > RB



Trailing WInstone error message on job configure page

2012-03-27 Thread Didier Durand
Hello,

Since 1.456 (also in 1.457), I get the following error message from 
winstone in the Job configuration page for each job after current 
configuration is displayed

Status Code: nullException: 
Stacktrace: 

(none)


--
*Generated by Winstone Servlet Engine v0.9.10 at Wed Mar 28 08:00:18 CEST 
2012*

Do I have a config issue specific to my machine or is it a new problem for 
those releases for which I should open a JIRA ticket ?

regards

didier


Re: Switch JDK between build steps

2012-03-26 Thread Didier Durand
Hi,

To my knowledge Jenkins launches a separate jvm for each step you configure 
in the "Build" section of your job configuration

So, I would try to alternate your build steps under Ant with shell build 
steps and use these shell steps to switch the jvm/jre as you want  (via for 
example. the linux "alternatives" command)


regards 

didier


Le lundi 26 mars 2012 11:54:15 UTC+2, Andreas a écrit :
>
> Hi,
>
>
> I face the issue that I have to use different JDKs for different build 
> steps. Namely I need to invoke the compile step in ant with a 1.5 JDK and 
> run the sonar ant target with a 1.6 JDK. There is no easy way to split this 
> job, so a multi job setup is no solution here. Also I do not want to fork 
> into a different JDK in ant manually - actually only Jenkins knows where 
> the JDK is installed on the build node. 
>
> I face a similar requirement for maven goals. 
>  
> I'm thinking about extending the ANT plugin to allow JDK selection in the 
> advanced options and the set JAVA_HOME accordingly. 
>
> Is there an easy, already existing solution? Any ideas are welcome.
>
>
> Kind Regards, Andreas.
>


Re: Change svn check-out strategy for automatic/manuel build

2012-03-25 Thread Didier Durand
Hi Chitech,

Agreed with Jan: what you propose is a lot of work compared to my solution 
achieved in a few clicks...

Up to you

regards

didier

Le samedi 24 mars 2012 11:09:34 UTC+1, chitech a écrit :
>
> We found a way around it.
>
> 1.0 Make a cron job to modify the config.xml to Clean workspace
> 1.1 Call reload configuration via disk from cron job
> 2.0 The hudson run the nightly builds
> 3.0 Make a cron job to modify the config.xml back to emualte clean
> 3.1 Call reload configuration via disk from cron job
>
>  
>
> On Thursday, March 22, 2012 1:34:16 PM UTC+1, chitech wrote:
>>
>> When an user schedule a build we would like to use svn check-out 
>> strategy: 
>> ‘Emulate clean checkout by first deleting unversioned/ignored files, 
>> then 'svn update'’ 
>>
>> But for nightly build we would like to use this strategy: 
>> Clean workspace and then checkout 
>>
>> We want this because the build time will be shorter in the daytime. 
>> Can we 
>> somehow achieve this setup?
>
>
> On Thursday, March 22, 2012 1:34:16 PM UTC+1, chitech wrote:
>>
>> When an user schedule a build we would like to use svn check-out 
>> strategy: 
>> ‘Emulate clean checkout by first deleting unversioned/ignored files, 
>> then 'svn update'’ 
>>
>> But for nightly build we would like to use this strategy: 
>> Clean workspace and then checkout 
>>
>> We want this because the build time will be shorter in the daytime. 
>> Can we 
>> somehow achieve this setup?
>
>
> On Thursday, March 22, 2012 1:34:16 PM UTC+1, chitech wrote:
>>
>> When an user schedule a build we would like to use svn check-out 
>> strategy: 
>> ‘Emulate clean checkout by first deleting unversioned/ignored files, 
>> then 'svn update'’ 
>>
>> But for nightly build we would like to use this strategy: 
>> Clean workspace and then checkout 
>>
>> We want this because the build time will be shorter in the daytime. 
>> Can we 
>> somehow achieve this setup?
>
>
> On Thursday, March 22, 2012 1:34:16 PM UTC+1, chitech wrote:
>>
>> When an user schedule a build we would like to use svn check-out 
>> strategy: 
>> ‘Emulate clean checkout by first deleting unversioned/ignored files, 
>> then 'svn update'’ 
>>
>> But for nightly build we would like to use this strategy: 
>> Clean workspace and then checkout 
>>
>> We want this because the build time will be shorter in the daytime. 
>> Can we 
>> somehow achieve this setup?
>
>
> On Thursday, March 22, 2012 1:34:16 PM UTC+1, chitech wrote:
>>
>> When an user schedule a build we would like to use svn check-out 
>> strategy: 
>> ‘Emulate clean checkout by first deleting unversioned/ignored files, 
>> then 'svn update'’ 
>>
>> But for nightly build we would like to use this strategy: 
>> Clean workspace and then checkout 
>>
>> We want this because the build time will be shorter in the daytime. 
>> Can we 
>> somehow achieve this setup?
>
>
> On Thursday, March 22, 2012 1:34:16 PM UTC+1, chitech wrote:
>>
>> When an user schedule a build we would like to use svn check-out 
>> strategy: 
>> ‘Emulate clean checkout by first deleting unversioned/ignored files, 
>> then 'svn update'’ 
>>
>> But for nightly build we would like to use this strategy: 
>> Clean workspace and then checkout 
>>
>> We want this because the build time will be shorter in the daytime. 
>> Can we 
>> somehow achieve this setup?
>
>

Re: Change svn check-out strategy for automatic/manuel build

2012-03-22 Thread Didier Durand
Hi,

I guess that you have to create 2 jobs:

   - daily: with trigger on each change and simple svn update
   - nightly: with time scheduling and and fresh svn checkout

That means that you'll have a separate workspace for each of those jobs

regards


didier

Le jeudi 22 mars 2012 13:34:16 UTC+1, chitech a écrit :


When an user schedule a build we would like to use svn check-out 
> strategy: 
> ‘Emulate clean checkout by first deleting unversioned/ignored files, 
> then 'svn update'’ 
>
> But for nightly build we would like to use this strategy: 
> Clean workspace and then checkout 
>
> We want this because the build time will be shorter in the daytime. 
> Can we 
> somehow achieve this setup?



Re: Jenkins vs. Hudson

2012-03-19 Thread Didier Durand
Hi,

A recent ppt by Cloudbees clearly demonstrated (via manay figures) that the 
community has switched from Hudson to Jenkins.

http://www.cloudbees.com/sites/default/files/whitepapers/Jenkins_Safe_Investment_Final.pdf
 
-> many figures there.

http://blog.cloudbees.com/2011/12/jenkins-community-survey-results-82.html

regards

didier


Le lundi 19 mars 2012 09:19:34 UTC+1, zakyn a écrit :
>
> Hi, 
>
> I would like to ask you how jenkins and hudson community cooperates or 
> where is the main development. 
>
> I have not met any information about the synergy of both or not. Of 
> course I am interested in plugins development and so on. 
>
> Thank you. 
>
> Vladimir



Re: How to make variables available to all build steps/action in a job

2012-03-19 Thread Didier Durand
Hi,

You can go into Jenkins Configure > Global Properties & there set env 
variables that are available to all jobs.

regards

didier

Le lundi 19 mars 2012 09:59:09 UTC+1, Jan Seidel a écrit :
>
> Hi Shanz, 
>
> *uhm* mkey... I am not familiar with python but I will give it a try. 
> Seems to be quite convenient to adapt the properties to my needs. 
>
> Thanks for your feedback :) 
>
> Take care 
> Jan 
>
> On 16 Mrz., 16:34, shanz  wrote: 
> > I found that a python script gave me more flexibility in what I could 
> > attach to an email... 
> > 
> > import smtplib 
> > import os 
> > from email.MIMEMultipart import MIMEMultipart 
> > from email.MIMEBase import MIMEBase 
> > from email.MIMEText import MIMEText 
> > from email.Utils import COMMASPACE, formatdate 
> > from email import Encoders 
> > 
> > myRelease = os.environ.get("BUILD_STRING") 
> > 
> files=["myData.xml","myDataNightly_Previous.xml","myDataRelease_Previous.xml",
>  
>
> > "myReport.html"] 
> > to=["an.ema...@address.com","an.ema...@address.com","
> an.ema...@address.com"] 
> > text1 = "To everyone\n\nmyData.xml has changed following the latest 
> > build :- " 
> > text2 = myRelease 
> > text3 = "\r\n\nSee attached files\r\n\r\nReleases are in\"netdrive 
> > \Product source code\Tagged\", \r\n\nNightly files are in \"\\\ 
> > \netdrive\Product source code\Nightly\"\r\n\nRegards,\r\n\nJenkins\r 
> > \n" 
> > text = text1+text2+text3 
> > 
> > # Send the email via our own SMTP server. 
> > def send_mail(to, subject, text, fromWho="", files=[], cc=[], bcc=[], 
> > server="10.192.00.000"): 
> > assert type(to)==list 
> > assert type(files)==list 
> > assert type(cc)==list 
> > assert type(bcc)==list 
> > 
> > message = MIMEMultipart() 
> > message['From'] = fromWho 
> > message['To'] = COMMASPACE.join(to) 
> > message['Date'] = formatdate(localtime=True) 
> > message['Subject'] = subject 
> > message['Cc'] = COMMASPACE.join(cc) 
> > 
> > message.attach(MIMEText(text)) 
> > 
> > for f in files: 
> > part = MIMEBase('application', 'octet-stream') 
> > part.set_payload(open(f, 'rb').read()) 
> > Encoders.encode_base64(part) 
> > part.add_header('Content-Disposition', 'attachment; 
> > filename="%s"' % os.path.basename(f)) 
> > message.attach(part) 
> > 
> > addresses = [] 
> > for x in to: 
> > addresses.append(x) 
> > for x in cc: 
> > addresses.append(x) 
> > for x in bcc: 
> > addresses.append(x) 
> > 
> > smtp = smtplib.SMTP(server) 
> > smtp.sendmail(fromWho, addresses, message.as_string()) 
> > smtp.close() 
> > 
> > send_mail(to, "myData.xml", text, "jenkins", files)



Re: Jenkins - getting slower and slower

2012-03-18 Thread Didier Durand
Hi,

To disable plugin via the HDD, you can have to delete them in 
$JENKINS_HOME/plugins (bot .hpi file and directory with same name

regards

didier

Le dimanche 18 mars 2012 22:16:44 UTC+1, zakyn a écrit :
>
> Hello, 
>
> I have problem that Jenkins is getting slower and slower and it is not 
> possible to manage plugins. So I would lilke to ask you how I can 
> disable plugin directly on HDD. 
>
> Thank you. 
>
> Best regards, 
>
> Vladimir



Re: Database Builds to different targets

2012-03-18 Thread Didier Durand
Hello,

You should have the common part of your build as a 1st job abd then apply 
patches as downstream jobs of the 1st one.

regards

didier

Le dimanche 18 mars 2012 02:44:34 UTC+1, Craigbert a écrit :
>
> Hello All, 
>
> I am working on a project where we have multiple patches that need to 
> be applied to different database environments (all Oracle) at 
> different times.  The patches consist of things like ALTER scripts, 
> Create/Replace Views, CREATE Tables, etc.. 
>
> Is this something that Jenkins could be configured to do? 
> If so, could someone point me in the appropriate direction? 
>
> Thanks, 
>
> Craigbert



Re: Archive only X month old builds

2012-03-16 Thread Didier Durand
Hi,

In each job configuration, you have "Discard old builds" (among the 1st 
checkmarks) where you select either the number of jobs or how many days you 
want to archive.

regards

didier


Le vendredi 16 mars 2012 13:44:49 UTC+1, zakyn a écrit :
>
> Hello, 
>
> I am looking for the plugin which allows me to archive only 1 or 2 
> month old builds. I know I can specify  the number of archived builds 
> (not only artifacts but the builds themselves) but it is not enough 
> for me. 
>
> The reason for that is that I am facing now to the problem with java 
> heap space and i think it is because of the history of builds. 
>
> Thank you for your help. 
>
> Vladimir



Re: Instable builds related to low memory

2012-03-09 Thread Didier Durand
Hi,

Did you try to try Java heap size via the "Java options" (advanced section) 
of the step config parameters using Xnx and Xms ?

That should solve your issue. [I dodn't think the size of physical real 
memory really matters for completion: even if you allocate more heap than 
physical memory, your server will paginate and extend duration but it 
should go to end with the right settings of Xmx / Xms.

I would also recommend you to install the Jenkins monitoring plugin based 
on Java Melody: very useful to follow memory comsumption

regards

didier


Le vendredi 9 mars 2012 12:47:25 UTC+1, dacay a écrit :
>
> Hi everyone,
>
> There is a problem I have been struggling with Jenkins. I tried 
> different CI servers but none of them offers the same features Jenkins 
> has, so I want to use it.
>
> I have a small Rackspace CloudServer instance with 256MB RAM and running 
> Jenkins with Apache Tomcat 7 in that server. Using Maven 2 and Git 
> plugins of Jenkins.
>
> The problem is, either Maven JVM exits with the code 137 (when forking 
> is enabled) or I get mysterious crashes. I know that the 256MB of RAM 
> may not be enough for Jenkins; but the thing is: even when I am running 
> Jenkins, I can build the project via command line in a short period of 
> time. My project involves some heavy servers, and generally the test are 
> failing with Jenkins.
>
> If I can build the project via command line just fine when the Jenkins 
> server is running (meaning more than one JVM), isn't that a problem with 
> the Jenkins? I tried different combinations of fork configurations and 
> Maven JVM settings, even when build is OK for once, then it fails in 
> subsequent builds.
>
> I even set maximum number of builds to keep to 3, but it didn't help.
>
> Any comments are appreciated.
>
> Best regards,
>
> Deniz
>
>

Re: Jenkins Hung

2012-03-08 Thread Didier Durand
Hi,

you can access the system log via Jenkins Homepage > Manage Jenkins > 
System log

regards

didier

Le mercredi 7 mars 2012 20:24:16 UTC+1, John Hinnegan a écrit :
>
> Jenkins hung on me again. It just stops responding to requests. I wish it 
> would just die so it would be restarted.
>
> Anyway, following along: 
> https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+is+hanging
>
> Here's the JStack: http://pastebin.com/ZSNQgCm7
> Generated with sudo jstack -F 64871
>
> Heres's the JMap: http://pastebin.com/Mytcsnpv
> Generated with sudo jmap -heap 64871
>
> It's OSX. My version of JMap didn't seem to understand what the 
> -dump:format=b,file=heap.hprof tip in the wiki was going for. Can someone 
> give me the command line to see how that would work?
>
> Also, I tried to get the core dump, but it seems on OS X they are 
> suppressed by default, at least according to: 
> http://stackoverflow.com/questions/2080918/where-are-core-dumps-written-to-in-mac-os-x
>
> I didn't know to run the ulimit command first, so it seems I don't have a 
> dump to share. 
>
> Suggestions on what to do next time to help diagnose the issue appreciated.
>
>
>

Re: Any way to force a triggered job to use the same machine?

2012-03-08 Thread Didier Durand
Hi,

It seems to me that this plugin may allow you to achieve what you need

regards

didier

Le jeudi 8 mars 2012 17:27:37 UTC+1, FNX a écrit :
>
>
>I have a feeling I've posted this question before but not hit a 
> resolution.
>
>We generally have split our jobs into 2:  one job does the build, and 
> if 
> successful it triggers the test job.
>
>However, we have to run our tests over the build, and these are too 
> large 
> to feasibly push to some shared location for the test job to copy, so what 
> we currently do is set the test job's custom workspace to be that of the 
> build job.
>
>The downside of this is that we have to tie both build+test jobs to the 
> same machine so as to guarantee visibility of the build.
>
>
>Is there a way to let the build job pick a free box, and then make the 
> downstream job use the same machine?
>
>Maybe even a Jenkins command line at the end of the build that 
> determines 
> the current machine and explicitly changes the config. of the downstream 
> job 
> each time (although that'd be more unpleasant than our current tied-job 
> solution, I think)?
>
> -- 
> [neil@fnx ~]# rm -f .signature
> [neil@fnx ~]# ls -l .signature
> ls: .signature: No such file or directory
> [neil@fnx ~]# exit
>
>

Re: Cannot build any jobs: "Pending - Waiting for next available executor"

2012-03-07 Thread Didier Durand
Hi,

You may want to relate the number of executors to the number of cores
on your jenkins server if it is more or less dedicated to Jenkins

Soon you will also realize that you need to define priorities to sort
out jobs in the queue: then this plugin gets useful:
http://wiki.hudson-ci.org/display/HUDSON/Priority+Sorter+Plugin

regards

didier

On Mar 7, 3:06 pm, Nicky Ramone  wrote:
> Thanks! that worked. It's building now. I don't know how it got to the
> value 0.
>
> Do you have any tips for how to choose that number? I don't have any slaves
> right now.
>
>
>
>
>
>
>
> On Wed, Mar 7, 2012 at 11:00 AM, Slide  wrote:
> > Try changing to 1.
> > On Mar 7, 2012 6:57 AM, "Nicky Ramone"  wrote:
>
> >> This is an install that has been there for a long time.
> >> The "# of executors" is 0.
> >> Does that mean it's unlimited?
>
> >> On Wed, Mar 7, 2012 at 10:53 AM, Slide  wrote:
>
> >>> Is this a new install of Jenkins? Or one that's been up for a while? How
> >>> many executors do you have defined in the global config?
> >>>  On Mar 7, 2012 6:49 AM, "Nicky Ramone"  wrote:
>
>  That seems to be a different problem.
>  I haven't defined any quiet periods, and I'm only trying to run one
>  single build right now. The job never starts.
>
>  On Wed, Mar 7, 2012 at 10:41 AM,  wrote:
>
> >  This is probablyhttps://issues.jenkins-ci.org/browse/JENKINS-12994- 
> > vote for that ticket if it is a problem for you (and/or add a note to
> > the ticket indicating that you are also experiencing it) 
>
> > ** **
>
> > *From:* jenkinsci-users@googlegroups.com [mailto:
> > jenkinsci-users@googlegroups.com] *On Behalf Of *Nicky Ramone
> > *Sent:* 07 March 2012 13:34
> > *To:* jenkinsci-users@googlegroups.com
> > *Subject:* Cannot build any jobs: "Pending - Waiting for next
> > available executor"
>
> > ** **
>
> > Hi
>
> > ** **
>
> > Since several days I'm unable to build anything and I can't understand
> > what's wrong.
>
> > Jenkins keeps waiting for an available executor but never starts:
>
> > ** **
>
> > The server has enough free space and memory.
>
> > I tried restarting Jenkins, upgrading to the latest version (now I'm
> > on 1.454), restarting the job, but still nothing.
>
> > I also looked at the catalina.out logs but found nothing related to
> > that.
>
> > ** **
>
> > Maybe someone can give me a hint, please?
>
> > Thanks in advance.
>
> > --
>
> > This e-mail and any attachments may contain confidential, copyright
> > and or privileged material, and are for the use of the intended 
> > addressee
> > only. If you are not the intended addressee or an authorised recipient 
> > of
> > the addressee please notify us of receipt by returning the e-mail and do
> > not use, copy, retain, distribute or disclose the information in or
> > attached to the e-mail.
> > Any opinions expressed within this e-mail are those of the individual
> > and not necessarily of Diamond Light Source Ltd.
> > Diamond Light Source Ltd. cannot guarantee that this e-mail or any
> > attachments are free from viruses and we cannot accept liability for any
> > damage which you may sustain as a result of software viruses which may 
> > be
> > transmitted in or with the message.
> > Diamond Light Source Limited (company no. 4375679). Registered in
> > England and Wales with its registered office at Diamond House, Harwell
> > Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United 
> > Kingdom


Re: Maintain Jobs in SCM

2012-03-06 Thread Didier Durand
hi,

i would use the label in config to hold branch name asnd then do a
checkout including the label in the scm url via my own checkout in 1st
build step if the if the variable can't be set directly in jenkins.

regards

didier

On Mar 7, 6:38 am, Les Mikesell  wrote:
> On Tue, Mar 6, 2012 at 11:18 PM, Didier Durand  
> wrote:
>
> > You can insert env variables in your paths on Jenkins SCM section in
> > job configuration
>
> > So, what you can do to avoid recreating jobs for branches is to put a
> > variable for the path of the branch and set the value of the variable
> > just before lanching build step ot the job. [I use this technique to
> > be able to easily change at at once the URL root of the source code I
> > am building in my jobs]
>
> > Something that I didn't try is to use a matrix job to set this
> > variable successively to various values (all the possible branch
> > names) and then have Jenkins run them automatically but the odds are
> > good that it should work.
>
> How do you set something different other than the build host/label for
> the matrix axis?
>
> --
>   Les Mikesell
>      lesmikes...@gmail.com


Re: Jenkins dying regularly -- how to diagnose

2012-03-06 Thread Didier Durand
Hi,

I would also suggest to use the Monitoring plugin to easily diagnose
memory issues in your jvm

At https://wiki.jenkins-ci.org/display/JENKINS/Monitoring

regards

didier

On Mar 7, 12:27 am, Sami Tikka  wrote:
> Also, check the system log for exceptions. You have probably run out of 
> memory either in heap or in permgen pool. The system log can be viewed 
> easiest by running Console.app in /Applications/Utilities.
>
> -- Sami
>
> John Hinnegan  kirjoitti 6.3.2012 kello 22.17:
>
>
>
>
>
>
>
> > We recently set up a Jenkins server on OS X.  We had been using Jenkins 
> > prior to this in the cloud, but decided it was worth it to just buy a 
> > little machine to do our builds for us. Now our Jenkins is going 
> > unresponsive -- pretty consistently after 12-18 hours with only a couple of 
> > days of observations. I don't know what the issue is, how can I diagnose?
>
> > PS. The worst part of this is that the process doesn't die, it just stops 
> > answering requests. If it would actually die, the the process manager would 
> > restart it (which would be more acceptable)


Re: Maintain Jobs in SCM

2012-03-06 Thread Didier Durand
Hi,

You can insert env variables in your paths on Jenkins SCM section in
job configuration

So, what you can do to avoid recreating jobs for branches is to put a
variable for the path of the branch and set the value of the variable
just before lanching build step ot the job. [I use this technique to
be able to easily change at at once the URL root of the source code I
am building in my jobs]

Something that I didn't try is to use a matrix job to set this
variable successively to various values (all the possible branch
names) and then have Jenkins run them automatically but the odds are
good that it should work.

regards

didier

On Mar 7, 2:10 am, Conormull  wrote:
> Hi all
>
> As we achieve more advanced build pipeline features with out Jenkins
> jobs, we would now like to maintain those jobs in our SCM. Each time
> we cut a new branch to continue developer we now find ourselves
> recreating our Jenkins jobs to point to the new branch. I was just
> wondering if anyone is doing something similar and who you may have
> gone about it from an end to end perspective. When and how are you
> uploading the newest version of the job etc. Any help would be much
> appreciated.
>
> Kind Regards
> Conor


Re: Having a given job running absolutely alone on my jenkins: how ?

2012-03-02 Thread Didier Durand
Hi Jess & Matt,

Thanks a lot for your quick answers !

I'll try the Exclusive Execution Plugin first as it is my exact use
case. Then, the others if needed.

regards

didier


On Mar 2, 5:41 pm,  wrote:
> I've not used it, 
> buthttps://wiki.jenkins-ci.org/display/JENKINS/Exclusive+Execution+Pluginmatches
>  your use case exactly.
>
>
>
>
>
>
>
>
>
> > -Original Message-
> > From: jenkinsci-users@googlegroups.com 
> > [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Didier
> > Durand
> > Sent: 02 March 2012 16:37
> > To: Jenkins Users
> > Subject: Having a given job running absolutely alone on my jenkins: how ?
>
> > Hello,
>
> > During night, I want to launch a jenkins job that makes all backups
> > for all the ressources (database, svn, etc) that all other jenkins
> > jobs use.
>
> > So, I have to make sure that this job is running absolutely alone.
>
> > I already have tenths of jobs configured and I don't want to change
> > something in their config because of this new backup job.
>
> > What is the best way to achieve that ?
>
> > My current plan:
> >    a) schedule the job at 02:00 am
> >    b) make the job reduce the number of executors to 1 for itself only
> >    c) query the queue and executors to wait that all other job finish
> >    d) run the backup activities
> >    e) restore the executors to their original number
> >    f) finish the backup job
>
> > Questions:
> >   1) what is the correct way (API) to reduce the executors
> > programmatically ?
> >   2) is there anything better than my plan ? (I studied Lock&Latch and
> > Throttle plugin but they don't seem appropriate for that purpose)
>
> > Thanks a lot in advance !
>
> > regards
>
> > didier
>
> --
> This e-mail and any attachments may contain confidential, copyright and or 
> privileged material, and are for the use of the intended addressee only. If 
> you are not the intended addressee or an authorised recipient of the 
> addressee please notify us of receipt by returning the e-mail and do not use, 
> copy, retain, distribute or disclose the information in or attached to the 
> e-mail.
> Any opinions expressed within this e-mail are those of the individual and not 
> necessarily of Diamond Light Source Ltd.
> Diamond Light Source Ltd. cannot guarantee that this e-mail or any 
> attachments are free from viruses and we cannot accept liability for any 
> damage which you may sustain as a result of software viruses which may be 
> transmitted in or with the message.
> Diamond Light Source Limited (company no. 4375679). Registered in England and 
> Wales with its registered office at Diamond House, Harwell Science and 
> Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom


Re: Handing off builds between Jenkins masters

2012-03-02 Thread Didier Durand
Hi,

I think this plugin can help 
https://wiki.jenkins-ci.org/display/JENKINS/Job+Import+Plugin
to list what's available on the other instance to be launched

I can also provide some Java code to do remote job launching with
authentication when needed. Just let me know

By combining the 2, you should be close to achieve what you want

regards

didier

On Mar 2, 5:52 pm, Jim McCaskey  wrote:
> Aaron,
>
> Thanks for the feedback.  I was afraid it would boil down to something like 
> that.  I was hoping for a solution which a novice could use pretty easily.  
> One of the great things of administering Jenkins is that it's pretty easy to 
> set up and get going.  I looked for a plugin you suggested but couldn't find 
> it.  Even if it was too restrictive I could try and find some time to augment 
> it to do what I want.  I suppose I could always start from scratch. :)
>
> -Jim
>
>
>
>
>
>
>
> -Original Message-
> From: jenkinsci-users@googlegroups.com 
> [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Neerenberg, Aaron
> Sent: Friday, March 02, 2012 10:22 AM
> To: jenkinsci-users@googlegroups.com
> Subject: RE: Handing off builds between Jenkins masters
>
> Jim-
>
> I remember there being a plugin, a while back, which would allow one Jenkins 
> instance to invoke jobs directly upon another; however, it required that the 
> job be defined on both servers with the same name.  I currently run several 
> Jenkins instances (different dev centers), and, for the most part, ended up 
> just using a group of wget calls to call the correct URL's for the API of the 
> target instance.
>
> Regards,
> Aaron
>
> -Original Message-
> From: jenkinsci-users@googlegroups.com 
> [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Jim McCaskey
> Sent: Friday, March 02, 2012 7:52 AM
> To: 'jenkinsci-users@googlegroups.com'
> Subject: Handing off builds between Jenkins masters
>
> Hello all,
>
> I've looked around for a bit for something to do what I want, and before I 
> spend a whole lot of time hacking around, I thought I would ask.  I would 
> like to be able to have one Jenkins master start a build on another Jenkins 
> master.  Just like the existing "Build other projects" functionality, but 
> instead of calling the other project on the local Jenkins Master, call it on 
> a remote Jenkins master.
>
> Why do I want to do this?  Our Jenkins use is growing internally (a good 
> thing!) and other groups want to use the system for their own automation 
> purposes.  These other groups are doing more detailed testing, integration 
> work, and some system maintenance and the existing Jenkins administrators 
> don't want to deal with that.  There's also the issue of passwords/security 
> to deal with between the completely separate groups.  It seems like if there 
> was a way to spawn projects off on another Jenkins master than the other 
> groups could have their own masters and work them as they see fit.
>
> I've thought of a few ways to handle this (the Jenkins CLI immediately comes 
> to mind), but wanted to know if there was a cleaner implementation that could 
> make this happen.
>
> Thanks!
>
> -Jim


Having a given job running absolutely alone on my jenkins: how ?

2012-03-02 Thread Didier Durand
Hello,

During night, I want to launch a jenkins job that makes all backups
for all the ressources (database, svn, etc) that all other jenkins
jobs use.

So, I have to make sure that this job is running absolutely alone.

I already have tenths of jobs configured and I don't want to change
something in their config because of this new backup job.

What is the best way to achieve that ?

My current plan:
   a) schedule the job at 02:00 am
   b) make the job reduce the number of executors to 1 for itself only
   c) query the queue and executors to wait that all other job finish
   d) run the backup activities
   e) restore the executors to their original number
   f) finish the backup job

Questions:
  1) what is the correct way (API) to reduce the executors
programmatically ?
  2) is there anything better than my plan ? (I studied Lock&Latch and
Throttle plugin but they don't seem appropriate for that purpose)

Thanks a lot in advance !

regards

didier


Having only one given project on my Jenkins instance: how?

2012-03-02 Thread Didier Durand
Hello,

During night, I want to launch a jenkins job that makes all backups
for all the ressources (database, svn, etc) that all other jenkins
jobs use.

So, I have to make sure that this job is running absolutely alone.

I already have tenths of jobs configured and I don't want to change
something in their config because of this new backup job.

What is the best way to achieve that ?

My current plan:
   a) schedule the job at 02:00 am
   b) make the job reduce the number of executors to 1 for itself only
   c) query the queue and executors to wait that all other job finish
   d) run the backup activities
   e) restore the executors to their original number
   f) finish the backup job


Questions:
  1) what is the correct way (API) to reduce the executors
programmatically ?
  2) is there anything better than my plan ? (I studied Lock&Latch and
Throttle plugin but they don't seem appropriate for that purpose)

Thanks a lot in advance !

regards

didier


Re: OutOfMemory on test import

2012-03-02 Thread Didier Durand
Hi,

Here it seems that you need only to increase memory parameters for
your testing job alone not Jenkins as whole: you do that in the "java
options" line of the build step config of your job: you say -Xms xxx -
Ymx yyy with appropriate values for X & Y.

regards

didier


to achieve that you have to specifiy your values in the

On Mar 2, 10:57 am, Gaetan  wrote:
> oops... forget => Thank you very much for your support ;)
>
> -
> Gaetan
>
> 2012/3/2 Gaetan 
>
>
>
>
>
>
>
> > Hello
>
> > I'm starting to have a java heap error when parsing the junit tests.
> > I have a bunch of 3000 tests that might have some long logs (the total
> > size of junit files is around 200 Mb), but I hope jenkins is able to handle
> > this).
>
> > How can I increase the HEAP size of jenkins ? Or is there a way to fix
> > this crash (in the futur, the results size will increase) ?
>
> > *10:39:52*  FATAL: Java heap space*10:39:52*  java.lang.OutOfMemoryError 
> > : 
> > Java heap space*10:39:52*       at 
> > java.util.Arrays.copyOfRange(Arrays.java:3221) 
> > *10:39:52*
> >        at java.lang.String.(String.java:233) 
> > *10:39:52*
> >     at 
> > org.dom4j.io.SAXContentHandler.characters(SAXContentHandler.java:299) 
> > *10:39:52*
> >    at 
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:541)
> >  
> > *10:39:52*
> >           at 
> > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:441)
> >  
> > *10:39:52*
> >      at 
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:819)
> >  
> > *10:39:52*
> >          at 
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:748)
> >  
> > *10:39:52*
> >          at 
> > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
> >  
> > *10:39:52*
> >     at 
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
> >  
> > *10:39:52*
> >    at 
> > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
> >  
> > *10:39:52*
> >         at org.dom4j.io.SAXReader.read(SAXReader.java:465) 
> > *10:39:52*
> >        at org.dom4j.io.SAXReader.read(SAXReader.java:264) 
> > *10:39:52*
> >        at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:112) 
> > *10:39:52*
> >    at hudson.tasks.junit.TestResult.parse(TestResult.java:208) 
> > *10:39:52*
> >       at hudson.tasks.junit.TestResult.parse(TestResult.java:163) 
> > *10:39:52*
> >       at hudson.tasks.junit.TestResult.parse(TestResult.java:140) 
> > *10:39:52*
> >       at hudson.tasks.junit.TestResult.(TestResult.java:116) 
> > *10:39:52*
> >       at 
> > hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:114)
> >  
> > *10:39:52*
> >           at 
> > hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:87)
> >  
> > *10:39:52*
> >    at hudson.FilePath.act(FilePath.java:788) 
> > *10:39:52*
> >         at hudson.FilePath.act(FilePath.java:770) 
> > *10:39:52*
> >         at hudson.tasks.junit.JUnitParser.parse(JUnitParser.java:83) 
> > *10:39:52*
> >     at 
> > hudson.tasks.junit.JUnitResultArch

Re: Slow job configuration launch

2012-03-01 Thread Didier Durand
Hi,

Do you keep a long history of builds for your jobs ? It may help if
you keep it smaller.

regards

didier

On Mar 2, 6:12 am, tah  wrote:
> Hello,
>         My Jenkins instance is generally fast, but launching any job
> configuration page is extremely slow. To be clear: Log in to Jenkins,
> nice and fast. Hit job link, nice and fast. Hit the 'Configure' link
> for that job, very very slow to bring up that page. I tried playing
> with the java heap settings, and no difference. Any pointers?
>
> Thanks for any help!


Re: Facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins

2012-03-01 Thread Didier Durand
This is for maven: so it will apply to your job after it starts
building (in a separate JVM launched by Jenkins for each Job)

In your case, it is the "master" JVM used by Jenkins core functions
that has the issue: it's definitely the Jenkins launch script that has
to be updated.

Can you tell us about your environnment: os, etc. so that we can
help ?

regards

didier

On Mar 1, 8:55 am, jhoomshar...@netscape.net wrote:
> I have this entry in my lunch script:
>
> export MAVEN_OPTS="-Djava.awt.headless=true -XX:-UseGCOverheadLimit -Xms1280m 
> -Xmx1280m -XX:NewSize=128m -XX:MaxPermSize=512m"
>
>
>
>
>
>
>
> -Original Message-
> From: Didier Durand 
> To: Jenkins Users 
> Sent: Thu, Mar 1, 2012 12:45 pm
> Subject: Re: Facing problem of “java.lang.OutOfMemoryError: PermGen space” in 
> Jenkins
>
> Hi,
> Did you try to increase the PermGen space in the launch shell script
> f jenkins.
> If you are like me on Ubuntu it's in /etc/default in file jenkins :
> ine JAVA_ARGS.
> regards
> didier
> On Mar 1, 8:09 am, jhoomshar...@netscape.net wrote:
>  Hi All,
>  I am facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins
> 1.451, this out of memory issue comes when Jenkins try to connect to Slave or 
> a
> uild starts on Slave, following is the error message:
>  //
>  Exception in thread "RequestHandlerThread[#0]" java.lang.OutOfMemoryError:
> ermGen space
>  Exception in thread "RequestHandlerThread[#5]" java.lang.OutOfMemoryError:
> ermGen space
>  Feb 29, 2012 7:46:39 AM hudson.remoting.Channel$ReaderThread run
>  SEVERE: Unexpected error in channel vw-aus-atm-bl01
>  java.lang.OutOfMemoryError: PermGen space
>          at sun.misc.Unsafe.defineClass(Native Method)
>          at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
>          at 
> sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at 
> sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
>          at 
> sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95)
>          at 
> sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:313)
>          at 
> java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1327)
>          at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:52)
>          at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:437)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at java.io.ObjectStreamClass.(ObjectStreamClass.java:413)
>          at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)
>          at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547)
>          at 
> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)
>          at 
> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
>          at 
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
>          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>          at 
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
>          at 
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
>          at 
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
>          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>          at 
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
>          at 
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
>          at 
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
>          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
>          at hudson.remoting.Channel$ReaderThread.run(Channel.java:1127)
>  Exception in thread "Channel reader thread: vl-aus-atm-bl01"
> ava.lang.OutOfMemoryError: PermGen space
>  Exception in thread "Ping thread for channel 
> hudson.remoting.Channel@87ca1a9:vw-aus-atm-bl01"
> ava.lang.OutOfMemoryError: PermGen space
>  Exception in thread "Ping thread for channel 
> hudson.remoting.Channel@453130df:vl-aus-atm-bl01"
> ava.lang.OutOfMemoryError: PermGen space
>  Feb 29, 2012 7:48:18 AM winstone.Logger logInternal
>  WARNING: Untrapped Error in Servlet
>  j

Re: Facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins

2012-02-29 Thread Didier Durand
Hi,

Did you try to increase the PermGen space in the launch shell script
of jenkins.

If you are like me on Ubuntu it's in /etc/default in file jenkins :
line JAVA_ARGS.

regards

didier

On Mar 1, 8:09 am, jhoomshar...@netscape.net wrote:
> Hi All,
> I am facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins 
> V1.451, this out of memory issue comes when Jenkins try to connect to Slave 
> or a build starts on Slave, following is the error message:
> //
> Exception in thread "RequestHandlerThread[#0]" java.lang.OutOfMemoryError: 
> PermGen space
> Exception in thread "RequestHandlerThread[#5]" java.lang.OutOfMemoryError: 
> PermGen space
> Feb 29, 2012 7:46:39 AM hudson.remoting.Channel$ReaderThread run
> SEVERE: Unexpected error in channel vw-aus-atm-bl01
> java.lang.OutOfMemoryError: PermGen space
>         at sun.misc.Unsafe.defineClass(Native Method)
>         at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
>         at 
> sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at 
> sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
>         at 
> sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95)
>         at 
> sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:313)
>         at 
> java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1327)
>         at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:52)
>         at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:437)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.io.ObjectStreamClass.(ObjectStreamClass.java:413)
>         at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)
>         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547)
>         at 
> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)
>         at 
> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
>         at 
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>         at 
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
>         at 
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
>         at 
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>         at 
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
>         at 
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
>         at 
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
>         at hudson.remoting.Channel$ReaderThread.run(Channel.java:1127)
> Exception in thread "Channel reader thread: vl-aus-atm-bl01" 
> java.lang.OutOfMemoryError: PermGen space
> Exception in thread "Ping thread for channel 
> hudson.remoting.Channel@87ca1a9:vw-aus-atm-bl01" java.lang.OutOfMemoryError: 
> PermGen space
> Exception in thread "Ping thread for channel 
> hudson.remoting.Channel@453130df:vl-aus-atm-bl01" java.lang.OutOfMemoryError: 
> PermGen space
> Feb 29, 2012 7:48:18 AM winstone.Logger logInternal
> WARNING: Untrapped Error in Servlet
> java.lang.OutOfMemoryError: PermGen space
> Exception in thread "Channel reader thread: vw-aus-atm-bl01" 
> java.lang.OutOfMemoryError: PermGen space
> Exception in thread "RequestHandlerThread[#3]" java.lang.OutOfMemoryError: 
> PermGen space
> Exception in thread "RequestHandlerThread[#1]" java.lang.OutOfMemoryError: 
> PermGen space
> Exception in thread "RequestHandlerThread[#4]" java.lang.OutOfMemoryError: 
> PermGen space
> Exception in thread "RequestHandlerThread[#6]" java.lang.OutOfMemoryError: 
> PermGen space
> Exception in thread "RequestHandlerThread[#2]" java.lang.OutOfMemoryError: 
> PermGen space
> Exception in thread "Jenkins cron thread" java.lang.OutOfMemoryError: PermGen 
> space
> Exception in thread "RequestHandlerThread[#7]" java.lang.OutOfMemoryError: 
> PermGen space
> Exception in thread "RequestHandlerThread[#8]" java.lang.OutOfMemoryError: 
> PermGen space
> Exception in thread "RequestHandlerThread[#14]" java.lang.OutOfMemoryError: 
> PermGen space
> Exception in thread "RequestHandlerThread[#13]" java.lang.OutOfMemoryError: 
> PermGen space
> Exception in thread "RequestHandlerThread[#9]" java.lang.OutOfMemoryError: 
> PermGen space
> Exception in thread "RequestHandlerThread[#11

Re: excessive job workspaces created

2012-02-28 Thread Didier Durand
Hi,

Sorry, I didn't re-read your initial post: you're in master-slave

So, your issue is probably related to fix of issue 12704 mentionned
above.

regards

didier

On Feb 29, 8:19 am, Didier Durand  wrote:
> Hi Aaron,
>
> Are you in a master/slave config: according 
> tohttps://issues.jenkins-ci.org/browse/JENKINS-12704, it seems that
> jenkins code was recently changed to create "more" @ workspaces.
> Maybe, too much
>
> regards
>
> didier
>
> On Feb 29, 7:10 am, Aaron Kushner  wrote:
>
>
>
>
>
>
>
> > On Feb 28, 9:11 pm, Didier Durand  wrote:
>
> > > Yes, you've probably allowed parallel jo execution in the "Advanced"
> > > section of job configuration and many of your job did execute at the
> > > same time: to my knowledege and experience,  the  @n appears when
> > > parallel execution is allowed.
>
> > Hello Didier,
>
> > Thanks for the reply.
>
> > Actually, I'm seeing this behavior for jobs where I didn't have
> > parallel execution enabled. And if it was parallel execution,
> > I'd expect those directories to be populated with build source
> > and artifacts... but the directories are empty.
>
> > Seems like a bug, but I don't know how to track it down. Some
> > jobs are now up to 28 directories :-(


Re: excessive job workspaces created

2012-02-28 Thread Didier Durand
Hi Aaron,

Are you in a master/slave config: according to
https://issues.jenkins-ci.org/browse/JENKINS-12704, it seems that
jenkins code was recently changed to create "more" @ workspaces.
Maybe, too much

regards

didier

On Feb 29, 7:10 am, Aaron Kushner  wrote:
> On Feb 28, 9:11 pm, Didier Durand  wrote:
>
> > Yes, you've probably allowed parallel jo execution in the "Advanced"
> > section of job configuration and many of your job did execute at the
> > same time: to my knowledege and experience,  the  @n appears when
> > parallel execution is allowed.
>
> Hello Didier,
>
> Thanks for the reply.
>
> Actually, I'm seeing this behavior for jobs where I didn't have
> parallel execution enabled. And if it was parallel execution,
> I'd expect those directories to be populated with build source
> and artifacts... but the directories are empty.
>
> Seems like a bug, but I don't know how to track it down. Some
> jobs are now up to 28 directories :-(


Re: excessive job workspaces created

2012-02-28 Thread Didier Durand
HI,

Yes, you've probably allowed parallel jo execution in the "Advanced"
section of job configuration and many of your job did execute at the
same time: to my knowledege and experience,  the  @n appears when
parallel execution is allowed.

regards

didier

On Feb 29, 1:10 am, Aaron Kushner  wrote:
> Has anyone seen this behavior below? Only one of these workspaces is
> used, but many are created. On some of my slaves, I'll have @2-@20 (or
> more) workspaces created, but nothing is in them. This is using
> Jenkins 1.451 on Centos 5.2.
>
> I tried googling and didn't see anything pertinent. Ideas?
>
> $ du -sh /data/users/jenkins/workspace/*
> 551M    /data/users/jenkins/workspace/build_hadoop_warehouse
> 4.0K    /data/users/jenkins/workspace/build_hadoop_warehouse@2
> 4.0K    /data/users/jenkins/workspace/build_hadoop_warehouse@3
> 4.0K    /data/users/jenkins/workspace/build_hadoop_warehouse@4
> 4.0K    /data/users/jenkins/workspace/build_hadoop_warehouse@5
> 4.0K    /data/users/jenkins/workspace/build_hadoop_warehouse@6
> 4.0K    /data/users/jenkins/workspace/build_hadoop_warehouse@7
> 4.0K    /data/users/jenkins/workspace/build_hadoop_warehouse@8
> 4.0K    /data/users/jenkins/workspace/build_hadoop_warehouse@9
>
> Thanks in advance.


Re: Port issue

2012-02-27 Thread Didier Durand
Hi,

When you say that "port 8080 gets down" does it mean that the jenkins
server is down: i.e do you find it  via ps -ef on linux console ?

Other question; is your jenkins running natively (suning embedded
Winstone) or within a container (tomcat or other)?

regards

didier

On Feb 27, 9:19 am, Suri  wrote:
> Hi
>
> Our Jenkins server is Red Hat Linux.
> We are frequently getting Webpage issue in Jenkins. i have checked
> Jenkins service in server, When webpage is down.
> Jenkins service status showing as running . but the webpage is down.
> Not able to access Jenkins Webpage.
>
> I have found port 8080 is not running in server. It is frequently
> getting down automatically.
> We  don’t know, why the port is getting down?
> I have checked from Server and Network end. It seems to be well.
>
> For temporarily solution We have created a crontab entry with a
> Jenkins service startup script, it will check the 8080 status, when
> ever the 8080 port is down it will automatically restart the Jenkins
> service
> Can anyone please advise me, Why the port is getting down
> automatically.


Re: Building a JAR File

2012-02-26 Thread Didier Durand
Agreed with David

Just reuse your usual tools in your jenkins script: for example, if
you use Ant, there is a very simple Ant task to build jar

Look it up at : http://ant.apache.org/manual/Tasks/jar.html

regards

didier

On Feb 26, 9:24 pm, David Weintraub  wrote:
> On Sun, Feb 26, 2012 at 8:09 AM, Ted Jansen  wrote:
> > Hello,
>
> > This may be a noob question.
> > How can i build a jar file from jenkins from the workspace folder of a
> > project?
>
> How do you build jars without Jenkins? For example, are you using Ant
> or Maven for your build process? If you are, all you have to do is
> specify the same target in Jenkins as you do when you manually build
> your jar using Ant or Maven.
>
> Maybe the question is how do you access the jar that was built. In
> that case, all you need to do is ask Jenkins to archive certain build
> products. This is in the post build phase. All you have to do is
> specify that you want to archive your "**/*.jar" files. Then, in each
> build, you'll see a link to the jar.
>
> Maybe you don't know how to get Jenkins to do a build because you're
> using Eclipse or InteliJ to do the build for you?
>
> --
> David Weintraub
> qazw...@gmail.com


Re: anonymous disables jobs

2012-02-24 Thread Didier Durand
Hi,

Was the number of executors changed in the Jenkins config to 0 at some
point ?

regards

didier

On Feb 24, 5:32 pm, noa  wrote:
> hi,
>
> I have a promblem with my jenkins server, some of my clients
> complained about their jobs being disabled and after looking into it I
> saw the jobs are being disabled by an anonymous user.
> the wierd thing is that my jenkins server has permissions and the user
> anonymous has no permissions at all.
> the authenthincation is with an ldap server.
>
> I couldn't find anything about that problem on the internet so any
> help would be appriciated.
>
> thank you :)


Re: Jenkins (JVM) crashes after few minutes after start

2012-02-24 Thread Didier Durand
Hi,

Do you have the Java stack trace of the crash?

regards

didier

On Feb 24, 4:04 pm, Domen Kožar  wrote:
> I have been fighting with this one for a month, would be really
> pleased if someone can give tips or request more data:
>
> Crosspost:http://serverfault.com/questions/355516/jenkins-jvm-crashes-after-few...


Re: JMS trigger

2012-02-23 Thread Didier Durand
Hi,

If you go to the plugins page and check the Build Triggers section,
you'll see that many plugins have the same intent as yours: FileFound
plugin, FST plugin, IRC plugin, URL change plugin.

So, you should definitely do it.

Btw, the plugins mentionned probably provide good source code
skeletons for you

regards

didier

On Feb 24, 1:51 am, tommyB  wrote:
> So I have been using Jenkins for a couple of years to periodically run
> some etl/batch jobs.  Most of the jobs are simple enough that I just
> need a groovy script or two to take care business.  So anyway, I am
> starting to get requests to start dealing with real time data from
> JMS.  The data processing is fairly simple, and Jenkins has been a
> life saver for notification, logging and its restful api.  If I were
> to do what I need to consume and process data from a message queue, I
> basically would be creating a crappy version of Jenkins.  So I
> thought, why not extend Jenkins?  So here's my proposed use case...
> please tell me if this is insane.  I was thinking I could make a JMS
> trigger that can fire off a job if messages are in a queue; the job
> would run until all messages have been consumed.  I haven't seen
> anyone do this so I wonder if this is beyond the scope of
> Jenkins.


Re: Using svn export instead of svn checkout

2012-02-23 Thread Didier Durand
Hi,

please, keep cool .

The reason for checkout rather than export is to track and obtain
changes in your big files from subversion to your jenkins server but
only when they've effectively changed not each time you run the build
as you will incurr with export. But, it seems you won't hear that.

by the way, don't worry for the quality of my build server: it works
just perfect with the appropriate use of svn  ;-)

regards

didier

On Feb 23, 1:53 pm, "Asmann, Roland"  wrote:
> Since we already use the clean checkout option, I don't see where the
> performance can be gained.
>
> As for tracing changes, I don't care about those on a build-server! The
> only purpose of a build-server is to check out the code, build it and
> report on that. If your build-server is making changes and checking
> those in, you are not using it in the right way!
>
> Disk space is cheap? I don't know in what company YOU work and if YOU
> can decide on buying more space, I have to fight for every MB of extra
> space I need and it takes months before it is finally decided IF I will
> even get it.
>
> I am not asking for the export option as the default or for getting rid
> of the checkout, I am just asking to add it as an alternative -- just
> like the other options that are already in the list!
>
> Roland
>
> On 23.02.2012 13:37, Didier Durand wrote:
>
>
>
>
>
>
>
>
>
> > Hi,
>
> > Even if checkout was possible, I don't think that it is a good idea
> > from a perf standpoint: if you export a file, it gets out of svn
> > control and the changes cannot be tracked.
>
> > So, next time your run the job, you have to do a full export again
> > even if the file didn't change inbetween: can take a long time for a
> > big file.
>
> > So, as disk space is cheap, I would prefer several copies rather than
> > the network burden (and corresponding delay to start) of a big file
>
> > regards
>
> > didier
>
> > On Feb 23, 12:40 pm, "Asmann, Roland"  wrote:
> >  > Hi all,
>
> >  > Would it be possible to use 'svn export' instead of 'svn checkout'?
> >  > We have a couple of projects that contain very large files, which are
> >  > then obviously saved twice on the Server -- once as the actual file and
> >  > once as the bas-version for SVN.
>
> >  > Since we don't check-in stuff from Jenkins, we would definitely benefit
> >  > in both performance and disc usage when getting our project using 'svn
> >  > export'. Can this be added to the svn-plugin as one of the options?
>
> >  > Thanks,
>
> >  > Roland
>
> >  > --
> >  > Roland Asmann
> >  > Senior Software Engineer
>
> >  > adesso Austria GmbH
> >  > Floridotower 26. Stock              T +43 1 2198790-27
> >  > Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
> >  > A-1210 Wien                         M +43 664 88657566
> >  >                                     E roland.asm...@adesso.at
> >  >                                     Wwww.adesso.at
>
> >  > -
> >  > >>> business. people. technology. <<<
> >  > -
>
> --
> Roland Asmann
> Senior Software Engineer
>
> adesso Austria GmbH
> Floridotower 26. Stock              T +43 1 2198790-27
> Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
> A-1210 Wien                         M +43 664 88657566
>                                     E roland.asm...@adesso.at
>                                     Wwww.adesso.at
>
> -
>              >>> business. people. technology. <<<
> -


Re: Using svn export instead of svn checkout

2012-02-23 Thread Didier Durand
Hi,

Even if checkout was possible, I don't think that it is a good idea
from a perf standpoint: if you export a file, it gets out of svn
control and the changes cannot be tracked.

So, next time your run the job, you have to do a full export again
even if the file didn't change inbetween: can take a long time for a
big file.

So, as disk space is cheap, I would prefer several copies rather than
the network burden (and corresponding delay to start) of a big file

regards

didier

On Feb 23, 12:40 pm, "Asmann, Roland"  wrote:
> Hi all,
>
> Would it be possible to use 'svn export' instead of 'svn checkout'?
> We have a couple of projects that contain very large files, which are
> then obviously saved twice on the Server -- once as the actual file and
> once as the bas-version for SVN.
>
> Since we don't check-in stuff from Jenkins, we would definitely benefit
> in both performance and disc usage when getting our project using 'svn
> export'. Can this be added to the svn-plugin as one of the options?
>
> Thanks,
>
> Roland
>
> --
> Roland Asmann
> Senior Software Engineer
>
> adesso Austria GmbH
> Floridotower 26. Stock              T +43 1 2198790-27
> Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
> A-1210 Wien                         M +43 664 88657566
>                                     E roland.asm...@adesso.at
>                                     Wwww.adesso.at
>
> -
>              >>> business. people. technology. <<<
> -


Re: non-recursively checkout out an svn tree

2012-02-21 Thread Didier Durand
Hi,

Is it possible for you to create a dir source/Makedir and move
Makefile into it ?
At least can you create Makedir and make a symlink to makefile into
it.

Then, you configure 2 checkout location in you jenkins job config: 1
for source/cpp and 1 for source/Makedir and you've reached your
objective.

regards

didier

On Feb 21, 6:30 pm, Chris Withers  wrote:
> Hi All,
>
> I have a project with a tree structure roughly like this:
>
> source
> source/Makefile
> source/python
> source/cpp
> source/sql
> source/lotsofotherstuff
>
> I have a job that builds the C++ release and then runs its unit tests.
> This requires:
>
> source/Makefile
> source/cpp
>
> Since Makefile is a file, not a folder, and one that for arcane reasons
> I can't move from its location, I can't *only* checkout Makefile and the
> cpp folder. This is resulting in loads of spurious executions of this
> build job as a result of changes to other parts of the tree that don't
> affect the C++ release at all.
>
> How can I *just* checkout the Makefile and cpp folders and have those
> used as the things that jenkins looks at for changes?
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Batch Processing & Python Consulting
>              -http://www.simplistix.co.uk


Re: constant building from svn - no change

2012-02-17 Thread Didier Durand
Hi,

Can you tell us what the very 1st line of the consol of a build: it
usually gives the reason for starting the build .

regards

didier

On 17 fév, 06:03,  wrote:
> Hi Guys
>
> I have a multi repo project, both checkouts are from svn servers, and I have 
> a 'poll scm' every 15 mins to build it.
>
> However, in the subversion changes, I can't see any changes, and the repos 
> version numbers are not changing either, but it just keeps building my project
>
> 500 builds later (oops - should have turned that off), I still can't work out 
> what is triggering a build and why.
>
> I am running Jenkins 1.450 and subversion 1.37. Do you have any suggestions?
>
> Terry


Re: jenkins svn update

2012-02-16 Thread Didier Durand
Hi Fiona,

The place to increase memory is Job Configuration of your job > Build
> Invoke Ant > Advanced > Java Options

What I can suggest to see if the issue comes from your CI machine or
the SVN server: connect to the CI machine via ssh, run the checkout in
the terminal session via the native svn client using 'svn co etc.'
command and see if time differs much from what you get when Jenkins
itself does the checkout via the SvnKit java library.

What I can say is that checkout is long is you have lots of code: I
regurlarly work on a project with 10+ millions lines of code. It takes
4 minutes to check this project out (jenkins and svn hosted on same
very powerful machine from I/O standpoint: all disks are SSDs)

regards

didier


On Feb 16, 7:02 am, fiona  wrote:
> hi,
> I open my job config, there no place to increase the -Xmx -Xms , I
> increase it in my enviornment variable JAVA_OPTS,the Xmx is 1024m, Xms
> is 128m, it seems like no effect.
> BTW,my source code is too much.
>
> On 2月16日, 下午1时20分, Didier Durand  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Maybe not enough memory for the JVM running the job to handle the svn
> > protocol efficiently
>
> > Try to increase the -Xmx -Xms on the Java Options of your job config.
>
> > I would be interested to read about your results with this proposal or
> > any other.
>
> > regards
>
> > didier
>
> > On Feb 16, 6:15 am, fiona  wrote:
>
> > > if my source code is managed by svn, when a new build start, it will
> > > update first,but I find it very slow, if I execute command 'svn
> > > update' alone, it is update fast. what factor maybe affect the speed?- 
> > > 隐藏被引用文字 -
>
> > - 显示引用的文字 -


Re: Job dependencies

2012-02-15 Thread Didier Durand
Hi,

You could create a job C that is triggered by the same events as B

C will only do 1 thing: have A a downstream job and A will have B as
downstream job

So, when C triggers (based on the triggers that you have chosen) it
launches A. When A finishes, it launches B

That's 1 way: maybe will people come with smarter solutions

regards

didier

On Feb 15, 4:57 pm, Alper Tekinalp  wrote:
> Any idea please?
>
> 2012/2/15 Alper 
>
> > Hi.
> > I have two jobs A, B and B is dependent to A. So how can I say every
> > time before building job B build job A?
> > Best regards.
>
> --
> Alper Tekinalp
> Hermes İletişim
> atekinalp.blogspot.com


Re: jenkins svn update

2012-02-15 Thread Didier Durand
Hi,

Maybe not enough memory for the JVM running the job to handle the svn
protocol efficiently

Try to increase the -Xmx -Xms on the Java Options of your job config.

I would be interested to read about your results with this proposal or
any other.

regards

didier

On Feb 16, 6:15 am, fiona  wrote:
> if my source code is managed by svn, when a new build start, it will
> update first,but I find it very slow, if I execute command 'svn
> update' alone, it is update fast. what factor maybe affect the speed?


Re: Edit a group of jobs configurations

2012-02-13 Thread Didier Durand
Hi,

This plugin is intended to change many jobs at once:
https://wiki.jenkins-ci.org/display/JENKINS/Configuration+Slicing+Plugin

regards

didier

On Feb 13, 3:05 pm, Alper  wrote:
> Hi all.
> Let say I have a group of jobs which have similar configurations. When
> I want to change something
> do I have to edit all jobs manually? Or is there a way to change
> common things from one place?
> Best regards.


Re: Hiding job from unauthenticated users

2012-02-13 Thread Didier Durand
Hi,

You should use the matrix-based security of jenkins: You can hide jobs
to unauthenticated users in the Jobs section of configuration

But, it hides all jobs at once. Do you need something more granular ?
(i.e per job)

regards

didier

On Feb 13, 10:36 am, Andrey Pohilko  wrote:
> Please, help me somebody...
>
> --
> View this message in 
> context:http://jenkins.361315.n4.nabble.com/Hiding-job-from-unauthenticated-u...
> Sent from the Jenkins users mailing list archive at Nabble.com.


Re: Block Build when downstream project is *queued*

2012-02-10 Thread Didier Durand
What about Exclusion plugin: 
https://wiki.jenkins-ci.org/display/JENKINS/Exclusion-Plugin

On Feb 10, 10:25 am, Dirk Kuypers  wrote:
> Hi Didier,
>
> are you sure? I am using it already for some jobs which I do not want
> to run concurrently. But how could I achieve that my compile job waits
> in the queue until the last downstream job entered the state running?
> If all downstream jobs are running it is save to start the next
> upstream compile job. But maybe I overlook something. And: it is a
> proposed deprecation:
>
> https://wiki.jenkins-ci.org/display/JENKINS/Proposed+Plugin+Deprecation
>
> The "Throttle Concurrent Builds Plugin" also only allows to control
> the executor nodes. I would need to have control about the waiting
> queue...
>
> I have played with priority sorter plugin but it did not work reliably for me.
>
> Any other idea?
>
> Dirk
>
> 2012/2/10 Didier Durand :
>
>
>
>
>
>
>
>
>
> > Hi,
>
> > Lock & Latch plugin should help you achieve what you need:
> >https://wiki.jenkins-ci.org/display/JENKINS/Locks+and+Latches+plugin
>
> > regards
>
> > didier
>
> > On Feb 9, 3:42 pm, Dirk Kuypers  wrote:
> >> Hi,
>
> >> is it possible to block a build as long as downstream projects are
> >> queued, but not running?
>
> >> Background: We have a continuous compile job triggered by SCM changes
> >> which starts about 30 unit test jobs after successfull compile. Most
> >> test jobs copy their workspace via copy-workspace-scm plugin from this
> >> compile job. Compile takes about 5 minutes, some test projects 10
> >> minutes and longer. The round-trip build cycle is around 18 minutes at
> >> the moment. When I disable "Block build when downstream jobs are
> >> running" at the compile job it will happen, that there are some tests
> >> queued from the previous build which will get started after the second
> >> compile is successfull. So those tests get their workspace from the
> >> second compile and not from the first one. If the second compile job
> >> had to wait untill all remaining tests left the queue and entered the
> >> state running I think it would be save to start the next compile (and
> >> could save us about 5 minutes in our build cycle).
>
> >> Another possibility would be to tie the unit-test job to its starting
> >> compile job with the workspace attached and not to "Most recent
> >> completed build".
>
> >> Any thoughts on this? Any other way to achieve my goal?
>
> >> Dirk
>
> >> --
> >> Never trust a short-haired guru
>
> --
> Never trust a short-haired guru
>
> --
> Never trust a short-haired guru


Re: Unable to add build step to freestyle job

2012-02-10 Thread Didier Durand
Hi,

What browser do you use to access Jenkins: there are some knowns
issues with IE that does not handle properly some javascript in
Jenkins pages.

Try with Firefox and let us know.

regards

didier

On Feb 10, 9:58 am, Dünnebeil Gerhard 
wrote:
> Hello,
>
> I tried to add a new "free-style software project" to our Jenkins these days 
> and ran into problems.
>
> I was able to create the new job but I am NOT able to add any build step.
>
> This behaviour is reproducible and it occurs when I try to do it from the 
> initial "configure" page I get after job creation  as well as with a later 
> configure attempt.
>
> It does not depend on whether I am logged in or not.
>
> The problem is that when I open the "add build step" I get a selection of 
> possible job types ("shell script", "windows batch", ...) but when I select 
> one of those nothing more happens.
>
> I also have other jobs of this type already up and running and I am also not 
> able to add more build steps to those.
>
> My question is:
> Is this wrong usage from my side?
> Or a known bug? If yes, is there any workaround?
>
> What can I do to help solving this issue?
>
> Some information on the system:
> I use Jenkins build 1.450
> On Ubuntu 11.100
>
> Best regards
> Gerhard Dünnebeil


Re: Block Build when downstream project is *queued*

2012-02-09 Thread Didier Durand
Hi,

Lock & Latch plugin should help you achieve what you need:
https://wiki.jenkins-ci.org/display/JENKINS/Locks+and+Latches+plugin

regards

didier

On Feb 9, 3:42 pm, Dirk Kuypers  wrote:
> Hi,
>
> is it possible to block a build as long as downstream projects are
> queued, but not running?
>
> Background: We have a continuous compile job triggered by SCM changes
> which starts about 30 unit test jobs after successfull compile. Most
> test jobs copy their workspace via copy-workspace-scm plugin from this
> compile job. Compile takes about 5 minutes, some test projects 10
> minutes and longer. The round-trip build cycle is around 18 minutes at
> the moment. When I disable "Block build when downstream jobs are
> running" at the compile job it will happen, that there are some tests
> queued from the previous build which will get started after the second
> compile is successfull. So those tests get their workspace from the
> second compile and not from the first one. If the second compile job
> had to wait untill all remaining tests left the queue and entered the
> state running I think it would be save to start the next compile (and
> could save us about 5 minutes in our build cycle).
>
> Another possibility would be to tie the unit-test job to its starting
> compile job with the workspace attached and not to "Most recent
> completed build".
>
> Any thoughts on this? Any other way to achieve my goal?
>
> Dirk
>
> --
> Never trust a short-haired guru


Re: Upstream/Downsteam configuration

2012-02-09 Thread Didier Durand
Hi,

Just go in the config of the upstream job and update the field Add
Build Step > Build other projects > projects to build then choose your
downstrean projects to launch  and decide when to build them (always,
only on success, etc.)

regards

didier

On Feb 9, 6:09 pm, Sebastian Otaegui  wrote:
> Hello guys,
>
> Is there a way to modify the upstream/downstream relationships between jobs?
>
> I though I saw an option like that in the past but I cannot find it, may be
> a plugin that we removed?
>
> Thanks in advance
>
> --
> Those who do not understand Unix are condemned to reinvent it, poorly.
> Any sufficiently recent Microsoft OS contains an ad hoc,
> informally-specified, bug-ridden, slow implementation of half of Unix.


Re: Subversion does not show up under Source Code Management in the configure job page

2012-02-08 Thread Didier Durand
Hi,

Subversion plugin is part of the base install

There is an issue prior to 1.450 (see changelog) when you update the
pre-installed version of the svn plugin with the last version 1.37) of
the plugin.

So,  you should upgrade to 1.450 (or even better do a fresh start of
1.450 after deleting current $JENKINS_HOME dir and its content). Then,
no need to upgrade svn plugin.

That should fix your issue.

regards

didier

On Feb 9, 2:31 am, KHURRAM FARAAZ  wrote:
> Hi,
>
> I have Jenkins up and running, I am trying to poll subversion from Jenkins,
> and hence I installed Subversion Plugin.
> However, Subversion does not show up as one of the options under the Source
> Code Management heading in the configure job page.
>
> My version of Jenkins is 1.449
>
> Thx!


Re: Failed to define svn credenials

2012-02-07 Thread Didier Durand
Hi,

Did you try 1st to do a checkout out of Jenkins with a product like
TortoiseSVN on WIndows or RabbitVCS on Linux ?

This should help you to check if your svn url and credentials are
correct more easily then you can come back to Jenkins

regards

didier


On Feb 6, 7:30 pm, Nicky Ramone  wrote:
> Hello.
>
> I'm trying to define the authentication credentials for an svn repository,
> but it fails to do so without much explanation.
> I'm using this URL:
> http:///jenkins/scm/SubversionSCM/enterCredential
>
> This what gets displayed:
> Error
>
> No authentication was attempted.
> FAILED: org.tmatesoft.svn.core.SVNErrorMessage: svn: Operation cancelled
>
> org.tmatesoft.svn.core.SVNCancelException: svn: Operation cancelled
>         at 
> hudson.scm.UserProvidedCredential$AuthenticationManagerImpl.checkIfProtocolCompleted(UserProvidedCredential.java:254)
>         at 
> hudson.scm.SubversionSCM$DescriptorImpl.postCredential(SubversionSCM.java:1868)
>         at 
> hudson.scm.SubversionSCM$DescriptorImpl.doPostCredential(SubversionSCM.java:1812)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at 
> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
>         at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
>         at 
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
>         at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
>         at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
>         at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563)
>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
>         at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
>         at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
>         at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563)
>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
>         at org.kohsuke.stapler.Stapler.service(Stapler.java:159)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>         at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
>         at 
> hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>         at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>         at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
>         at 
> hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
>         at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>         at 
> org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
>         at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>         at 
> org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
>         at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>         at 
> org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
>         at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>         at 
> org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
>         at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>         at 
> org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
>         at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>         at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61)
>         at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>         at 
> org.acegisecurity.con

Re: Console Log RegEx on Build Page

2012-02-07 Thread Didier Durand
Hi,

This plugin https://wiki.jenkins-ci.org/display/JENKINS/DocLinks+Plugin
should help

regards

didier

On Feb 2, 12:18 am, LexManos  wrote:
> I am looking for a way to place custom links on the build pages in jenkins
> based on the build log.
> My build system has a special file publisher that populates to many mirrors
> and prints out the links to the console.
> Is there any simple way to get all links from the console to display on the
> build page.
> Or, better yet, the ability to run a RegEx over the log and print out based
> on that?
>
> --
> View this message in 
> context:http://jenkins.361315.n4.nabble.com/Console-Log-RegEx-on-Build-Page-t...
> Sent from the Jenkins users mailing list archive at Nabble.com.


Re: Source code metrics plugin ?

2012-02-06 Thread Didier Durand
Hi,

I personally use SLOCCOUNT: if you work in an environment with
multiple languages, it's particularly well suited to get measures in
such an heterogeneous environment.

regards

didier


On Feb 6, 1:49 pm, Jan Goyvaerts  wrote:
> AHA ! NOW they're hiding ! :-)
>
> Error formatting macro: contentbylabel:
> java.util.ConcurrentModificationException
>
> When looking to the reporting plugins.
>
>
>
>
>
>
>
> On Mon, Feb 6, 2012 at 13:44, Jan Goyvaerts  wrote:
> > It was of course a figure of speech. :-) I meant that there's so much
> > choice ! ;-)
>
> > Thanks !
>
> > On Mon, Feb 6, 2012 at 13:41, Fred G  wrote:
>
> >> Hi,
>
> >> here is the link to all the reporting plugins:
> >>https://wiki.jenkins-ci.org/display/JENKINS/Plugins#Plugins-Buildreports
>
> >> One of the most popular plug-ins is this one:
> >>https://wiki.jenkins-ci.org/display/JENKINS/Static+Code+Analysis+Plug...
>
> >> BTW: The plug-ins are not hiding, they can easily be found with the
> >> search feature of the Jenkins wiki. ;)
>
> >> Hth,
>
> >> Fred


Re: Jenkins running server out of memory

2012-02-03 Thread Didier Durand
Hi,

You should install the Monitoring plugin: 
https://wiki.jenkins-ci.org/display/JENKINS/Monitoring

it will get you lots of info about your jvm running jenkins: when you
have them, you can post back it here with the elements in hand (how
many threads, etc.)

It will then be much easier for people to help you.

regards

didier


On Feb 3, 11:53 pm, Al  wrote:
> hello all,
> I have jenkins 1.441 on a centos vm with one gig of memory.
> I installed it by dropping the war file in tomcat.
> I installed about four plugins and then started running builds.
> All was well but then I got to about 12 different builds running throughout 
> the day and keeping only one build with archived packages.
> It started running extremely slow and until it eventually ran out of memory.
> I tried to restart tomcat to no avail as the jenkins instance would just 
> cause it to crash again for out of memory.
>
> Is this a known issue or something that I need to tweak in jenkins to reduce 
> the memory footprint.
>
> Thanks,