Re: Single email notification from a muti-configuration project
You can ask for email-ext plugin feature on Jenkins JIRA, or implement this. On Friday, November 9, 2012 9:29:44 AM UTC+2, Chai wrote: We currently use email-ext plugin for enabling email notifications on builds. We see that the users are receiving mutiple notifications if the project is configured as a muti-configuration project. Is there a way to send a single email instead. Jenkins version1.404 Email-ext version 2.14 Thanks Chaitanya
Re: How to get the result of the triggered job in one email
1. Use Copy Artifact Pluginhttp://wiki.jenkins-ci.org/display/JENKINS/Copy+Artifact+Plugin to copy artifacts from downstream job if you need 2. Use email-ext [pre-send script] feature to modify message content 3. Add artifacts as attachments to email On Friday, November 9, 2012 9:42:34 AM UTC+2, Sven Finsterwalder wrote: thank, i try it but i havent found any possibilty to add content from another job to the mainjob Am Donnerstag, 8. November 2012 09:19:30 UTC+1 schrieb AdvanTiSS: You can try email-ext plugin On Wednesday, November 7, 2012 2:21:19 PM UTC+2, Sven Finsterwalder wrote: Hello, i have one question. In my jenkins there is one job which starts with a parameter two other build-jobs. The Job will fail if one of the triggered jobs fails and send one email. I wish to add the reason in that email why the other job is failing. Is that possible?
Re: How to get the result of the triggered job in one email
ok... thanks. What kind of language should i use for that script? java? How can i access the log output of the downstream job? Am Freitag, 9. November 2012 09:53:52 UTC+1 schrieb AdvanTiSS: 1. Use Copy Artifact Pluginhttp://wiki.jenkins-ci.org/display/JENKINS/Copy+Artifact+Plugin to copy artifacts from downstream job if you need 2. Use email-ext [pre-send script] feature to modify message content 3. Add artifacts as attachments to email On Friday, November 9, 2012 9:42:34 AM UTC+2, Sven Finsterwalder wrote: thank, i try it but i havent found any possibilty to add content from another job to the mainjob Am Donnerstag, 8. November 2012 09:19:30 UTC+1 schrieb AdvanTiSS: You can try email-ext plugin On Wednesday, November 7, 2012 2:21:19 PM UTC+2, Sven Finsterwalder wrote: Hello, i have one question. In my jenkins there is one job which starts with a parameter two other build-jobs. The Job will fail if one of the triggered jobs fails and send one email. I wish to add the reason in that email why the other job is failing. Is that possible?
Programmatically adding a Publisher
Hi! I'm programmatically adding a Publisher in my plugin. The ProjectAction is working correctly, but the UI isn't showing until I restart Jenkins? If I enable it manually, the UI is shown. Can I somehow activate the UI programmatically? Or is there a correct way to do it? Thanks. Christian Wolfgang
Dead Executor
Hi, I'm relatively new to Jenkins and have created a set of jobs to build our C/C++ project and test harnesses and run tests with the built executables, so the jobs have trigger links to trigger the next stage. After a 'reworking' of the jobs to use the Perforce plugin in a different way (utilise the client spec in file) and an update to 1.488 I am experiencing problems with Dead Executors but currently have no idea as to where to start looking to resolve this issue. An example below. Any help/suggestions appreciated. Kr Roger Nov 9, 2012 9:10:27 AM hudson.triggers.SafeTimerTask run SEVERE: Timer task hudson.model.Queue$MaintainTask@1de2b1 failed java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #256 DESC: lo=11,hi=10,size=11,size2=11 at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:418) at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:207) at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:100) at hudson.model.Job.getLastBuildsOverThreshold(Job.java:813) at hudson.model.Job.getEstimatedDuration(Job.java:820) at hudson.model.queue.MappingWorksheet.init(MappingWorksheet.java:320) at hudson.model.queue.MappingWorksheet.init(MappingWorksheet.java:303) at hudson.model.Queue.maintain(Queue.java:1033) at hudson.model.Queue$MaintainTask.doRun(Queue.java:1759) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) Nov 9, 2012 9:10:27 AM jenkins.model.lazy.AbstractLazyLoadRunMap search WARNING: Assertion error: failing to load #256 DESC: lo=11,hi=10,size=11,size2=11 java.lang.Exception at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:417) at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:207) at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:100) at hudson.model.Job.getLastBuildsOverThreshold(Job.java:813) at hudson.model.Job.getEstimatedDuration(Job.java:820)
Re: Programmatically adding a Publisher
i think you should invoke project.save() method On Friday, November 9, 2012 11:43:01 AM UTC+2, wolfgang wrote: Hi! I'm programmatically adding a Publisher in my plugin. The ProjectAction is working correctly, but the UI isn't showing until I restart Jenkins? If I enable it manually, the UI is shown. Can I somehow activate the UI programmatically? Or is there a correct way to do it? Thanks. Christian Wolfgang
RE: Editable Email Notification. How do I set conditional Email
No, it doesnt Sent from my Windows Phone -- From: AdvanTiSS Sent: 11/9/2012 12:04 AM To: jenkinsci-users@googlegroups.com Cc: Varghese Renny Subject: Re: Editable Email Notification. How do I set conditional Email Pre-send script must have return statement if(cause) { cancel=true } return cancel On Friday, November 9, 2012 7:31:34 AM UTC+2, slide wrote: Logic? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044306707d987804ce08ac46 --f46d044306707d987804ce08ac46 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Also what do you mean based on the results? Based on the return code? Based on some output from an app? Sent from my Windows Phone From: Varghese Renny Sent: 11/8/2012 9:49 PM To: jenkins...@googlegroups.com javascript: Subject: Re: Editable Email Notification. How do I set conditional Email Logic? Hi Tom, In presend script you can mention like this.. import hudson.model.Cause.UpstreamCause def cause = build.causes.find { if(it instanceof hudson.model.Cause.UpstreamCause) { return true } return false } if(cause) { cancel=true } I don't know how it cancel based on shell..Probably you can check some api's. What's your shell script actually doing? Regards, varghese On Fri, Nov 9, 2012 at 4:45 AM, Tom80112 nez...@yahoo.com javascript: wrote: Inside my execute shell window I perform script logic. Based on the results within the execute shell window, I may or may not want to send email via the Jenkins Email Extension Plugin. I have read that I can set up a pre-send script to cancel email being set up by setting cancel=true. My question is how how I set cancel=true based upon the outcome of logic within the execute shell window? There is no way to pass a variable from the execute shell window to the pre-send script.. Please Help.. :) -- View this message in context: http://jenkins.361315.n4.nabble.com/Editable-Email-Notification-How-do-I-set-conditional-Email-Logic-tp4645626.html Sent from the Jenkins users mailing list archive at Nabble.com. --f46d044306707d987804ce08ac46 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable htmlheadmeta content=3Dtext/html; charset=3Dutf-8 http-equiv=3DCont= ent-Type/headbodydivdiv style=3Dfont-family: Calibri,sans-serif; = font-size: 11pt;Also what do you mean based on the results? Based on the = return code? Based on some output from an app?brbrSent from my Windows = Phonebr/div/divhrspan style=3Dfont-family: Tahoma,sans-serif; fon= t-size: 10pt; font-weight: bold;From: /spanspan style=3Dfont-family: = Tahoma,sans-serif; font-size: 10pt;Varghese Renny/spanbrspan style= =3Dfont-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;Se= nt: /spanspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt;= 11/8/2012 9:49 PM/spanbrspan style=3Dfont-family: Tahoma,sans-serif;= font-size: 10pt; font-weight: bold;To: /spanspan style=3Dfont-family= : Tahoma,sans-serif; font-size: 10pt;jenkins...@googlegroups.comjavascript:/sp= anbrspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt; font= -weight: bold;Subject: /spanspan style=3Dfont-family: Tahoma,sans-ser= if; font-size: 10pt;Re: Editable Email Notification. How do I set conditi= onal Email Logic?/spanbrbr/body/htmlHi Tom,brbrIn presend scr= ipt you can mention like this..brbrimport hudson.model.Cause.UpstreamCa= usebr=C2=A0def cause =3D build.causes.find {br=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 if(it instanceof hudson.model.Cause.UpstreamCause) {br=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return truebr =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }br=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return f= alsebr=C2=A0}brbrif(cause)br{brcancel=3Dtruebr}brbrI don#3= 9;t know how it cancel based on shell..Probably you can check some api#39;= s.br What#39;s your shell script actually doing?br brRegards,brvarghese brbrdiv class=3Dgmail_quoteOn Fri, Nov 9, = 2012 at 4:45 AM, Tom80112 span dir=3Dltrlt;a href=3Dmailto: nez...@ya javascript:= hoo.com target=3D_blanknez...@yahoo.com javascript:/agt;/span wrote:brblock= quote class=3Dgmail_quote style=3Dmargin:0 0 0 .8ex;border-left:1px #ccc= solid;padding-left:1ex Inside my quot;execute shellquot; window I perform script logic.br br Based on the results within the quot;execute shellquot; window, I may or = maybr not want to send email via the Jenkins Email Extension Plugin.br br I have read that I can set up a pre-send script to cancel email beingbr set up by setting cancel=3Dtrue.br br My question is how how I set cancel=3Dtrue based upon the outcome ofbr logic within the quot;execute shellquot; window? =C2=A0 There is no way t= o pass abr variable from the quot;execute shellquot; window to the pre-send script..= br br Please Help.. :)br br br br --br View this message
Re: Editable Email Notification. How do I set conditional Email
Are you sure??? ExtendedEmailPublisher.java private boolean executePresendScript(AbstractBuild?, ? build, BuildListener listener, MimeMessage msg) throws RuntimeException { . Object output = shell.evaluate(presendScript); if(output!=null) { pw.println(Result: +output); cancel = ((Boolean)shell.getVariable(cancel)).booleanValue(); } } On Friday, November 9, 2012 4:03:58 PM UTC+2, slide wrote: No, it doesnt Sent from my Windows Phone -- From: AdvanTiSS Sent: 11/9/2012 12:04 AM To: jenkins...@googlegroups.com javascript: Cc: Varghese Renny Subject: Re: Editable Email Notification. How do I set conditional Email Pre-send script must have return statement if(cause) { cancel=true } return cancel On Friday, November 9, 2012 7:31:34 AM UTC+2, slide wrote: Logic? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044306707d987804ce08ac46 --f46d044306707d987804ce08ac46 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Also what do you mean based on the results? Based on the return code? Based on some output from an app? Sent from my Windows Phone From: Varghese Renny Sent: 11/8/2012 9:49 PM To: jenkins...@googlegroups.com Subject: Re: Editable Email Notification. How do I set conditional Email Logic? Hi Tom, In presend script you can mention like this.. import hudson.model.Cause.UpstreamCause def cause = build.causes.find { if(it instanceof hudson.model.Cause.UpstreamCause) { return true } return false } if(cause) { cancel=true } I don't know how it cancel based on shell..Probably you can check some api's. What's your shell script actually doing? Regards, varghese On Fri, Nov 9, 2012 at 4:45 AM, Tom80112 nez...@yahoo.com wrote: Inside my execute shell window I perform script logic. Based on the results within the execute shell window, I may or may not want to send email via the Jenkins Email Extension Plugin. I have read that I can set up a pre-send script to cancel email being set up by setting cancel=true. My question is how how I set cancel=true based upon the outcome of logic within the execute shell window? There is no way to pass a variable from the execute shell window to the pre-send script.. Please Help.. :) -- View this message in context: http://jenkins.361315.n4.nabble.com/Editable-Email-Notification-How-do-I-set-conditional-Email-Logic-tp4645626.html Sent from the Jenkins users mailing list archive at Nabble.com. --f46d044306707d987804ce08ac46 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable htmlheadmeta content=3Dtext/html; charset=3Dutf-8 http-equiv=3DCont= ent-Type/headbodydivdiv style=3Dfont-family: Calibri,sans-serif; = font-size: 11pt;Also what do you mean based on the results? Based on the = return code? Based on some output from an app?brbrSent from my Windows = Phonebr/div/divhrspan style=3Dfont-family: Tahoma,sans-serif; fon= t-size: 10pt; font-weight: bold;From: /spanspan style=3Dfont-family: = Tahoma,sans-serif; font-size: 10pt;Varghese Renny/spanbrspan style= =3Dfont-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;Se= nt: /spanspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt;= 11/8/2012 9:49 PM/spanbrspan style=3Dfont-family: Tahoma,sans-serif;= font-size: 10pt; font-weight: bold;To: /spanspan style=3Dfont-family= : Tahoma,sans-serif; font-size: 10pt;jenkins...@googlegroups.com/sp= anbrspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt; font= -weight: bold;Subject: /spanspan style=3Dfont-family: Tahoma,sans-ser= if; font-size: 10pt;Re: Editable Email Notification. How do I set conditi= onal Email Logic?/spanbrbr/body/htmlHi Tom,brbrIn presend scr= ipt you can mention like this..brbrimport hudson.model.Cause.UpstreamCa= usebr=C2=A0def cause =3D build.causes.find {br=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 if(it instanceof hudson.model.Cause.UpstreamCause) {br=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return truebr =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }br=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return f= alsebr=C2=A0}brbrif(cause)br{brcancel=3Dtruebr}brbrI don#3= 9;t know how it cancel based on shell..Probably you can check some api#39;= s.br What#39;s your shell script actually doing?br brRegards,brvarghese brbrdiv class=3Dgmail_quoteOn Fri, Nov 9, = 2012 at 4:45 AM, Tom80112 span dir=3Dltrlt;a href=3Dmailto: nez...@ya= hoo.com target=3D_blanknez...@yahoo.com/agt;/span wrote:brblock= quote class=3Dgmail_quote style=3Dmargin:0 0 0 .8ex;border-left:1px #ccc= solid;padding-left:1ex
Re: NoSuchRealmException on a basic maven job
I tried on a tomcat6 instance with the same exact setup and it worked, so I'm going to migrate jenkins there. The thing is that I could build it using the command line, on that same server, so unless a hypothetic missing dependency is on the classpath it shouldnt build. I could try to build a hello world project with maven on the Tomcat 5 instance to be sure that the issue is related to tomcat. Shouldnt the maven exception give some kind of clue as to what class could not be loaded? Le 9 nov. 2012 00:07, Varghese Renny varghesekre...@gmail.com a écrit : Hi, This error usually occur because of missing project dependencies that you define on pom.xml. Like jar file missing or adding dependencies which contain the class file it's looking for..You need to analyze it correctly.. Another cause can be jvm is not able to load full class defenition..Try to increase your jvm_opts for tomcat..In my machine it's location is /etc/default/tomcat6..You can edit this file increase your heap size. Regards, varghese On Fri, Nov 9, 2012 at 3:11 AM, Remi Carton remi.car...@gmail.com wrote: Hello, I am having trouble getting my maven job to work, even though it is a basic setup: - jenkins 1.489 (no slaves) on linux - tomcat 5.0 - jvm: 1.6.0_03-b05 - maven plugin 1.489 and this is for a maven 2.2.1 build. I tried installing Maven with both a manual install and the automated install (only once at a time). And then it's a basic maven job: cvs checkout and the maven goals clean compile What happens is the following: $ no changes detected Unpacking http://archive.apache.org/**dist/maven/binaries/apache-**maven-2.2.1-bin.zip http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.zip to /users/tomcat/.jenkins/tools/**Maven/Maven_2.2.1 on Jenkins Parsing POMs FATAL: org/codehaus/classworlds/**NoSuchRealmExceptionjava.lang.NoClassDefFoundError http://stacktrace.jenkins-ci.org/search?query=java.lang.NoClassDefFoundError**: org/codehaus/classworlds/**NoSuchRealmException at hudson.maven.**MavenEmbedderUtils.**buildPlexusContainer(**MavenEmbedderUtils.java:163) http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenEmbedderUtils.buildPlexusContainerentity=method at hudson.maven.**MavenEmbedderUtils.**buildPlexusContainer(**MavenEmbedderUtils.java:156) http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenEmbedderUtils.buildPlexusContainerentity=method at hudson.maven.MavenEmbedder.**init(MavenEmbedder.java:109) http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenEmbedder.%3Cinit%3Eentity=method at hudson.maven.MavenEmbedder.**init(MavenEmbedder.java:136) http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenEmbedder.%3Cinit%3Eentity=method I thought something was wrong with my maven install/maven_home, so I tried using a manually installed maven and setting the maven_home in jenkins, but exactly same result with the manual maven. If I check out my code on the server, I can run the build in the command line with that maven installation, everything runs fine. My guess is that there is something wrong with the environment used by jenkins for calling maven, did I miss a step in the settings? They seemed pretty straightforward and my usecase is as simple as it gets. Could it be the tomcat version? Sorry if this is a common or obvious issue, but I have been trying for a long time and even the venerable google could not help me troubleshoot this one. I'd be very thankful if someone could give me a little help on that one!
RE: Editable Email Notification. How do I set conditional Email
I'm pretty sure it will take the value of the last expression. Sent from my Windows Phone -- From: AdvanTiSS Sent: 11/9/2012 7:12 AM To: jenkinsci-users@googlegroups.com Cc: AdvanTiSS; Varghese Renny Subject: Re: Editable Email Notification. How do I set conditional Email Are you sure??? ExtendedEmailPublisher.java private boolean executePresendScript(AbstractBuild?, ? build, BuildListener listener, MimeMessage msg) throws RuntimeException { . Object output = shell.evaluate(presendScript); if(output!=null) { pw.println(Result: +output); cancel = ((Boolean)shell.getVariable(cancel)).booleanValue(); } } On Friday, November 9, 2012 4:03:58 PM UTC+2, slide wrote: No, it doesnt Sent from my Windows Phone -- From: AdvanTiSS Sent: 11/9/2012 12:04 AM To: jenkins...@googlegroups.com javascript: Cc: Varghese Renny Subject: Re: Editable Email Notification. How do I set conditional Email Pre-send script must have return statement if(cause) { cancel=true } return cancel On Friday, November 9, 2012 7:31:34 AM UTC+2, slide wrote: Logic? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044306707d987804ce08ac46 --f46d044306707d987804ce08ac46 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Also what do you mean based on the results? Based on the return code? Based on some output from an app? Sent from my Windows Phone From: Varghese Renny Sent: 11/8/2012 9:49 PM To: jenkins...@googlegroups.com Subject: Re: Editable Email Notification. How do I set conditional Email Logic? Hi Tom, In presend script you can mention like this.. import hudson.model.Cause.UpstreamCause def cause = build.causes.find { if(it instanceof hudson.model.Cause.UpstreamCause) { return true } return false } if(cause) { cancel=true } I don't know how it cancel based on shell..Probably you can check some api's. What's your shell script actually doing? Regards, varghese On Fri, Nov 9, 2012 at 4:45 AM, Tom80112 nez...@yahoo.com wrote: Inside my execute shell window I perform script logic. Based on the results within the execute shell window, I may or may not want to send email via the Jenkins Email Extension Plugin. I have read that I can set up a pre-send script to cancel email being set up by setting cancel=true. My question is how how I set cancel=true based upon the outcome of logic within the execute shell window? There is no way to pass a variable from the execute shell window to the pre-send script.. Please Help.. :) -- View this message in context: http://jenkins.361315.n4.nabble.com/Editable-Email-Notification-How-do-I-set-conditional-Email-Logic-tp4645626.html Sent from the Jenkins users mailing list archive at Nabble.com. --f46d044306707d987804ce08ac46 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable htmlheadmeta content=3Dtext/html; charset=3Dutf-8 http-equiv=3DCont= ent-Type/headbodydivdiv style=3Dfont-family: Calibri,sans-serif; = font-size: 11pt;Also what do you mean based on the results? Based on the = return code? Based on some output from an app?brbrSent from my Windows = Phonebr/div/divhrspan style=3Dfont-family: Tahoma,sans-serif; fon= t-size: 10pt; font-weight: bold;From: /spanspan style=3Dfont-family: = Tahoma,sans-serif; font-size: 10pt;Varghese Renny/spanbrspan style= =3Dfont-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;Se= nt: /spanspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt;= 11/8/2012 9:49 PM/spanbrspan style=3Dfont-family: Tahoma,sans-serif;= font-size: 10pt; font-weight: bold;To: /spanspan style=3Dfont-family= : Tahoma,sans-serif; font-size: 10pt;jenkins...@googlegroups.com/sp= anbrspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt; font= -weight: bold;Subject: /spanspan style=3Dfont-family: Tahoma,sans-ser= if; font-size: 10pt;Re: Editable Email Notification. How do I set conditi= onal Email Logic?/spanbrbr/body/htmlHi Tom,brbrIn presend scr= ipt you can mention like this..brbrimport hudson.model.Cause.UpstreamCa= usebr=C2=A0def cause =3D build.causes.find {br=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 if(it instanceof hudson.model.Cause.UpstreamCause) {br=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return truebr =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }br=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return f= alsebr=C2=A0}brbrif(cause)br{brcancel=3Dtruebr}brbrI don#3= 9;t know how it cancel based on shell..Probably you can check some api#39;= s.br What#39;s your shell script actually doing?br brRegards,brvarghese brbrdiv class=3Dgmail_quoteOn Fri, Nov 9, = 2012 at 4:45 AM, Tom80112 span dir=3Dltrlt;a href=3Dmailto: nez...@ya=
Re: Editable Email Notification. How do I set conditional Email
Huh, You're right I' not too familiar with groovy behavior, and yesterday while tuned email-ext publisher, i've faced with situation when output was null, beacuse *cancel=cause instanceof UpstreamCause;* returns result of last expression, but *def cancel=cause instanceof UpstreamCause;* returns null On Friday, November 9, 2012 4:30:51 PM UTC+2, slide wrote: I'm pretty sure it will take the value of the last expression. Sent from my Windows Phone -- From: AdvanTiSS Sent: 11/9/2012 7:12 AM To: jenkins...@googlegroups.com javascript: Cc: AdvanTiSS; Varghese Renny Subject: Re: Editable Email Notification. How do I set conditional Email Are you sure??? ExtendedEmailPublisher.java private boolean executePresendScript(AbstractBuild?, ? build, BuildListener listener, MimeMessage msg) throws RuntimeException { . Object output = shell.evaluate(presendScript); if(output!=null) { pw.println(Result: +output); cancel = ((Boolean)shell.getVariable(cancel)).booleanValue(); } } On Friday, November 9, 2012 4:03:58 PM UTC+2, slide wrote: No, it doesnt Sent from my Windows Phone -- From: AdvanTiSS Sent: 11/9/2012 12:04 AM To: jenkins...@googlegroups.com Cc: Varghese Renny Subject: Re: Editable Email Notification. How do I set conditional Email Pre-send script must have return statement if(cause) { cancel=true } return cancel On Friday, November 9, 2012 7:31:34 AM UTC+2, slide wrote: Logic? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044306707d987804ce08ac46 --f46d044306707d987804ce08ac46 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Also what do you mean based on the results? Based on the return code? Based on some output from an app? Sent from my Windows Phone From: Varghese Renny Sent: 11/8/2012 9:49 PM To: jenkins...@googlegroups.com Subject: Re: Editable Email Notification. How do I set conditional Email Logic? Hi Tom, In presend script you can mention like this.. import hudson.model.Cause.UpstreamCause def cause = build.causes.find { if(it instanceof hudson.model.Cause.UpstreamCause) { return true } return false } if(cause) { cancel=true } I don't know how it cancel based on shell..Probably you can check some api's. What's your shell script actually doing? Regards, varghese On Fri, Nov 9, 2012 at 4:45 AM, Tom80112 nez...@yahoo.com wrote: Inside my execute shell window I perform script logic. Based on the results within the execute shell window, I may or may not want to send email via the Jenkins Email Extension Plugin. I have read that I can set up a pre-send script to cancel email being set up by setting cancel=true. My question is how how I set cancel=true based upon the outcome of logic within the execute shell window? There is no way to pass a variable from the execute shell window to the pre-send script.. Please Help.. :) -- View this message in context: http://jenkins.361315.n4.nabble.com/Editable-Email-Notification-How-do-I-set-conditional-Email-Logic-tp4645626.html Sent from the Jenkins users mailing list archive at Nabble.com. --f46d044306707d987804ce08ac46 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable htmlheadmeta content=3Dtext/html; charset=3Dutf-8 http-equiv=3DCont= ent-Type/headbodydivdiv style=3Dfont-family: Calibri,sans-serif; = font-size: 11pt;Also what do you mean based on the results? Based on the = return code? Based on some output from an app?brbrSent from my Windows = Phonebr/div/divhrspan style=3Dfont-family: Tahoma,sans-serif; fon= t-size: 10pt; font-weight: bold;From: /spanspan style=3Dfont-family: = Tahoma,sans-serif; font-size: 10pt;Varghese Renny/spanbrspan style= =3Dfont-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;Se= nt: /spanspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt;= 11/8/2012 9:49 PM/spanbrspan style=3Dfont-family: Tahoma,sans-serif;= font-size: 10pt; font-weight: bold;To: /spanspan style=3Dfont-family= : Tahoma,sans-serif; font-size: 10pt;jenkins...@googlegroups.com/sp= anbrspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt; font= -weight: bold;Subject: /spanspan style=3Dfont-family: Tahoma,sans-ser= if; font-size: 10pt;Re: Editable Email Notification. How do I set conditi= onal Email Logic?/spanbrbr/body/htmlHi Tom,brbrIn presend scr= ipt you can mention like this..brbrimport hudson.model.Cause.UpstreamCa= usebr=C2=A0def cause =3D build.causes.find {br=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 if(it instanceof
Re: Memory issues with Jenkins
There's not a lot of jobs running on this. We're just getting Jenkins setup, and maybe get one or two builds per day. The problem seems to stem from the Analytic plugins: Findbugs, PMD, Checkstyle, Warnings, and CPD. The build completes fine, but when it is calculating the issues from the previous build to the present, it runs out of memory (usually during PMD). I never used Tomcat before and was wondering if it was related to that because I never had a memory issue before. Last place where I worked, we had six build executors and Jenkins was setup to use only 512mb of heap memory. Then again, these analytics are finding tens of thousands of issues a piece. The last time PMD ran, it found almost 65,000 issues with our code. Same with Findbugs. Even Javadoc comes up with almost 1000 warnings. The Ant tasks run and complete, but the Analysis of these issues is where I get memory issues. Maybe our code is in such bad shape that during the analysis Jenkins gets depressed and commits suicide. You have to set JVM in two places, one for system, one for the particular job you are running..check it out. Never thought of that. Where do I set Jenkins per job? Can Jenkins spool a job separately? Or, is this only when it's running Ant (where I can set the memory on a per job basis). The problem is that this is a post-build task that's crapping out. For now, I've just eliminated the analysis. Maybe I'll turn them on one at a time once the developers decide to go back and clean up their code. On Nov 9, 2012, at 12:14 AM, Varghese Renny varghesekre...@gmail.com wrote: Hi David, You have to set JVM in two places, one for system, one for the particular job you are running..check it out..I think 2GB memory is more than enough for one job..You can analze it through monitoring plugin.. Options are you can dump your heap memory to some location in your system and use some tools to anlayse those dumped memory to find any memory leakage..I think in eclipse one memory analyzer plugin is there. You can search some other better tools also.. Regards, varghese On Fri, Nov 9, 2012 at 2:59 AM, Qazwart qazw...@gmail.com wrote: At first, I was getting Out of Heap errors and increased the server's memory requirements to 1024m. Now I have a FATAL: GC overhead limit exceeded error. I'm running Jenkins 1.476 on a Redhat server running on Tomcat 7.0.27. I have the following options set: -Xmx1024m -Xx:PrintGCTimeStamp -verbose:gc -XX:-UseGCOverhradLimit (The GC stuff I just added) I can see a full GC constantly being called every second. This happens after the build is complete and after I am running the PMD plugin. Any advice? I've increased memory to 2Gb. This is the first time I used Jenkins with Tomcat. I'm wondering if there's an issue with Tomcat. -- David Weintraub da...@weintraub.name
LDAP users and local groups
Hi there, Just wondering if it is possible to use Jenkins with LDAP users but local groups. I don't manage the LDAP server and it is a long process to get groups created and/or altered. So I am left with adding long lists of users to multiple Jenkins jobs. Any ideas? Thanks. -Dave
Re: Dead Executor
Thanks. That does indeed look very similar and I'm also running Jenkins as a service (on Windows Server 2008 R2). I haven't quite worked out how to update the bug yet... Kr Roger On Friday, 9 November 2012 13:41:25 UTC, Christopher Orr wrote: Sounds like it's possibly related to https://issues.jenkins-ci.org/browse/JENKINS-15652 You could add info about your stacktrace, Jenkins config and environment to that bug. On 09/11/12 13:08, RogerS wrote: Hi, I'm relatively new to Jenkins and have created a set of jobs to build our C/C++ project and test harnesses and run tests with the built executables, so the jobs have trigger links to trigger the next stage. After a 'reworking' of the jobs to use the Perforce plugin in a different way (utilise the client spec in file) and an update to 1.488 I am experiencing problems with Dead Executors but currently have no idea as to where to start looking to resolve this issue. An example below. Any help/suggestions appreciated. Kr Roger Nov 9, 2012 9:10:27 AM hudson.triggers.SafeTimerTask run SEVERE: Timer task hudson.model.Queue$MaintainTask@1de2b1 failed java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #256 DESC: lo=11,hi=10,size=11,size2=11 at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:418) at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:207) at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:100) at hudson.model.Job.getLastBuildsOverThreshold(Job.java:813) at hudson.model.Job.getEstimatedDuration(Job.java:820) at hudson.model.queue.MappingWorksheet.init(MappingWorksheet.java:320) at hudson.model.queue.MappingWorksheet.init(MappingWorksheet.java:303) at hudson.model.Queue.maintain(Queue.java:1033) at hudson.model.Queue$MaintainTask.doRun(Queue.java:1759) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) Nov 9, 2012 9:10:27 AM jenkins.model.lazy.AbstractLazyLoadRunMap search WARNING: Assertion error: failing to load #256 DESC: lo=11,hi=10,size=11,size2=11 java.lang.Exception at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:417) at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:207) at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:100) at hudson.model.Job.getLastBuildsOverThreshold(Job.java:813) at hudson.model.Job.getEstimatedDuration(Job.java:820)
Re: LDAP users and local groups
We have Jenkins setup, to use our Windows Active Directory, and our local Windows groups are also Jenkins groups too. I use the matrix base security to assign certain abilities for certain Windows groups. On Nov 9, 2012, at 10:15 AM, David Newman dnew...@unixmonkeys.com wrote: Hi there, Just wondering if it is possible to use Jenkins with LDAP users but local groups. I don't manage the LDAP server and it is a long process to get groups created and/or altered. So I am left with adding long lists of users to multiple Jenkins jobs. Any ideas? Thanks. -Dave
dynamic popup memus
Arrghhh! Well now that's got your attention/back up[1] I would like to provide some feedback as to why I'm saying Arrghhh and the uses cases that I find are now killed because of it. I constantly find myself cutting and pasting bits of info from Jenkins to place elsewhere and half way through selecting the piece of information I need the popup menu appears - and this causes the selection to be deselected - so when the mouse is still moving to select some more bits you end up with the first bit selected no longer being in the selection :-o (this gets even worse when using a track pad rather than a mouse as you need to re-position your finger - so selection takes even longer than it would with a mouse) The other is I know where the menu is relative to a co-ordinate so I may move my mouse without speed to the link I want. When I do this without looking - (well you touch type so why not touch mouse!) you sometimes get a popup whilst the mouse is moving and select an item from the popup not the link that is now hidden by the popup. They do not disappear with the same stimulus method that enabled them to appear (that is you can not dismiss them by moving the mouse) (which is what the weather ones allow you to do - they disappear as soon as you mouse out of the weather icon - or popup). Even the weather popup can get obtrusive at times (think a folder with many jobs under it). I have also found (but can't recall on which tooltip) that I wanted to get a tooltip (I think it was estimated time left of a build job) and the tooltip was then covered up by the popup menu - rendering the tooltip unreadable. Note things may have moved on as I am on LTS. Chrome is the brower of choice... /James [1] delete as applicable ** This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00 **
RE: dynamic popup memus
Agreed. I find the inability to copy text from the web interface particularly frustrating. I don’t want to be too critical of the Jenkins developers – we all benefit from the work a lot of people put in to drive the product forward, but I think we have to accept that sometimes well-intentioned ideas turn out to be bad ones, and I think the menu changes are in that category. We’ve all done things that later on turned out not to be so good. Or maybe some people like the new menus? From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Nord, James Sent: 09 November 2012 16:30 To: jenkinsci-users@googlegroups.com Subject: dynamic popup memus Arrghhh! Well now that’s got your attention/back up[1] I would like to provide some feedback as to why I’m saying “Arrghhh” and the uses cases that I find are now killed because of it. I constantly find myself cutting and pasting bits of info from Jenkins to place elsewhere and half way through selecting the piece of information I need the popup menu appears – and this causes the selection to be deselected – so when the mouse is still moving to select some more bits you end up with the first bit selected no longer being in the selection :-o (this gets even worse when using a track pad rather than a mouse as you need to re-position your finger – so selection takes even longer than it would with a mouse) The other is I know where the menu is relative to a co-ordinate so I may move my mouse without speed to the link I want. When I do this without looking – (well you touch type so why not touch mouse!) you sometimes get a popup whilst the mouse is moving and select an item from the popup not the link that is now hidden by the popup. They do not disappear with the same stimulus method that enabled them to appear (that is you can not dismiss them by moving the mouse) (which is what the weather ones allow you to do – they disappear as soon as you mouse out of the weather icon – or popup). Even the weather popup can get obtrusive at times (think a folder with many jobs under it). I have also found (but can’t recall on which tooltip) that I wanted to get a “tooltip” (I think it was estimated time left of a build job) and the tooltip was then covered up by the popup menu – rendering the tooltip unreadable. Note things may have moved on as I am on LTS. Chrome is the brower of choice… /James [1] delete as applicable ** This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@nds.commailto:postmas...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00 ** -- 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: dynamic popup memus
James, R U trying to copy and paste contents from the menu list? May I ask what your objective is in performing a copy paste. I think that by explaining your objective and user-case scenario would better help the Jenkins owners understand your frustration. Kind Regards, Mgimza On Fri, Nov 9, 2012 at 11:35 AM, matthew.web...@diamond.ac.uk wrote: Agreed. I find the inability to copy text from the web interface particularly frustrating. ** ** I don’t want to be too critical of the Jenkins developers – we all benefit from the work a lot of people put in to drive the product forward, but I think we have to accept that sometimes well-intentioned ideas turn out to be bad ones, and I think the menu changes are in that category. We’ve all done things that later on turned out not to be so good. Or maybe some people like the new menus? ** ** ** ** *From:* jenkinsci-users@googlegroups.com [mailto: jenkinsci-users@googlegroups.com] *On Behalf Of *Nord, James *Sent:* 09 November 2012 16:30 *To:* jenkinsci-users@googlegroups.com *Subject:* dynamic popup memus ** ** Arrghhh! Well now that’s got your attention/back up[1] I would like to provide some feedback as to why I’m saying “Arrghhh” and the uses cases that I find are now killed because of it. I constantly find myself cutting and pasting bits of info from Jenkins to place elsewhere and half way through selecting the piece of information I need the popup menu appears – and this causes the selection to be deselected – so when the mouse is still moving to select some more bits you end up with the first bit selected no longer being in the selection :-o*** * (this gets even worse when using a track pad rather than a mouse as you need to re-position your finger – so selection takes even longer than it would with a mouse) The other is I know where the menu is relative to a co-ordinate so I may move my mouse without speed to the link I want. When I do this without looking – (well you touch type so why not touch mouse!) you sometimes get a popup whilst the mouse is moving and select an item from the popup not the link that is now hidden by the popup. They do not disappear with the same stimulus method that enabled them to appear (that is you can not dismiss them by moving the mouse) (which is what the weather ones allow you to do – they disappear as soon as you mouse out of the weather icon – or popup). Even the weather popup can get obtrusive at times (think a folder with many jobs under it). I have also found (but can’t recall on which tooltip) that I wanted to get a “tooltip” (I think it was estimated time left of a build job) and the tooltip was then covered up by the popup menu – rendering the tooltip unreadable. Note things may have moved on as I am on LTS. Chrome is the brower of choice… /James [1] delete as applicable ** ** -- ** This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00 ** -- 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
Build Flow Plugin: No signature of method FlowDelegate.parallel()
Hey, I got a really cool looking error using Build Flow Plugin. The flow is just 2 parameterized jobs which should run in parallel on different nodes. Here's the DSL: parallel ( build(agile_code, ENVIRONMENT: params[ENVIRONMENT], ACTION: params[ACTION]), build(agile_db, ENVIRONMENT: params[ENVIRONMENT], ACTION: params[ACTION]) ) Unfortunately, the jobs run serially. Jenkins is v1.487, Build Flow Plugin is v0.5. Stacktrace is below. Apologies if I'm just plain doing this wrong. Is there a better way to run parallel jobs or a better way to use this module? Thanks! Started by user anonymous https://alpha.n-ws.org/jenkins/user/null Building remotely on delta https://alpha.n-ws.org/jenkins/computer/delta in workspace /var/lib/jenkins/workspace/test_create_environment_flow Trigger job agile_code https://alpha.n-ws.org/jenkins/job/agile_code/agile_code #11 https://alpha.n-ws.org/jenkins/job/agile_code/11/ completed Trigger job agile_db https://alpha.n-ws.org/jenkins/job/agile_db/agile_db #7 https://alpha.n-ws.org/jenkins/job/agile_db/7/ completed FATAL: No signature of method: com.cloudbees.plugins.flow.FlowDelegate.parallel() is applicable for argument types: (com.cloudbees.plugins.flow.JobInvocation, com.cloudbees.plugins.flow.JobInvocation) values: [running job :agile_code, running job :agile_db] Possible solutions: parallel([Lgroovy.lang.Closure;), parallel(java.util.Collection)groovy.lang.MissingMethodException http://stacktrace.jenkins-ci.org/search?query=groovy.lang.MissingMethodException: No signature of method: com.cloudbees.plugins.flow.FlowDelegate.parallel() is applicable for argument types: (com.cloudbees.plugins.flow.JobInvocation, com.cloudbees.plugins.flow.JobInvocation) values: [running job :agile_code, running job :agile_db] Possible solutions: parallel([Lgroovy.lang.Closure;), parallel(java.util.Collection) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:198) at com.cloudbees.plugins.flow.FlowDelegate.methodMissing(FlowDSL.groovy:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:811) at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1103) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1056) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:704) at com.cloudbees.plugins.flow.FlowDelegate.invokeMethod(FlowDSL.groovy) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:407) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:348) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145) at Script1$_run_closure1.doCall(Script1.groovy:3) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at
Making sure jobs run in sequence
So I've got 2 jobs build test What I want to be able to do is make sure that they always run in this order and that text blocks build from running and build blocks test from running. I was able to accomplish that using the Locks and Latches plugin. The problem I'm running into is this... If I start a build (build 1) and then I queue another build (build 2) both of these complete before test is executed. The behavior I want if for build 1 to complete and test to run, then build 2 is run and test is run again. I tried playing around with the quiet period for build, but that seems to be counted when the job is in the queue not just after it's about to start. I could combine the two jobs... but I'd like to be able to continue to execute these independently when I need since I might want to fix tests and run them against the same build repeatedly. Thanks in advance, Ben
Re: Making sure jobs run in sequence
One trick I have used is to set up a separate queue for the test job and constrain it to run only one job at a time. You do this by creating a slave on the same machine and assign the test job to it. You still might need to use locks latches if you are running the build test jobs in the same workspace, otherwise not. At 5:01 PM -0800 11/9/12, Benjamin Lau wrote: So I've got 2 jobs build test What I want to be able to do is make sure that they always run in this order and that text blocks build from running and build blocks test from running. I was able to accomplish that using the Locks and Latches plugin. The problem I'm running into is this... If I start a build (build 1) and then I queue another build (build 2) both of these complete before test is executed. The behavior I want if for build 1 to complete and test to run, then build 2 is run and test is run again. I tried playing around with the quiet period for build, but that seems to be counted when the job is in the queue not just after it's about to start. I could combine the two jobs... but I'd like to be able to continue to execute these independently when I need since I might want to fix tests and run them against the same build repeatedly. Thanks in advance, Ben
Re: Memory issues with Jenkins
Check your build where you are mentioning ant task..take advanced option adjacent to it...there give jvm memory... as argument.. On Fri, Nov 9, 2012 at 8:38 PM, David Weintraub qazw...@gmail.com wrote: There's not a lot of jobs running on this. We're just getting Jenkins setup, and maybe get one or two builds per day. The problem seems to stem from the Analytic plugins: Findbugs, PMD, Checkstyle, Warnings, and CPD. The build completes fine, but when it is calculating the issues from the previous build to the present, it runs out of memory (usually during PMD). I never used Tomcat before and was wondering if it was related to that because I never had a memory issue before. Last place where I worked, we had six build executors and Jenkins was setup to use only 512mb of heap memory. Then again, these analytics are finding tens of thousands of issues a piece. The last time PMD ran, it found almost 65,000 issues with our code. Same with Findbugs. Even Javadoc comes up with almost 1000 warnings. The Ant tasks run and complete, but the Analysis of these issues is where I get memory issues. Maybe our code is in such bad shape that during the analysis Jenkins gets depressed and commits suicide. You have to set JVM in two places, one for system, one for the particular job you are running..check it out. Never thought of that. Where do I set Jenkins per job? Can Jenkins spool a job separately? Or, is this only when it's running Ant (where I can set the memory on a per job basis). The problem is that this is a post-build task that's crapping out. For now, I've just eliminated the analysis. Maybe I'll turn them on one at a time once the developers decide to go back and clean up their code. On Nov 9, 2012, at 12:14 AM, Varghese Renny varghesekre...@gmail.com wrote: Hi David, You have to set JVM in two places, one for system, one for the particular job you are running..check it out..I think 2GB memory is more than enough for one job..You can analze it through monitoring plugin.. Options are you can dump your heap memory to some location in your system and use some tools to anlayse those dumped memory to find any memory leakage..I think in eclipse one memory analyzer plugin is there. You can search some other better tools also.. Regards, varghese On Fri, Nov 9, 2012 at 2:59 AM, Qazwart qazw...@gmail.com wrote: At first, I was getting Out of Heap errors and increased the server's memory requirements to 1024m. Now I have a FATAL: GC overhead limit exceeded error. I'm running Jenkins 1.476 on a Redhat server running on Tomcat 7.0.27. I have the following options set: -Xmx1024m -Xx:PrintGCTimeStamp -verbose:gc -XX:-UseGCOverhradLimit (The GC stuff I just added) I can see a full GC constantly being called every second. This happens after the build is complete and after I am running the PMD plugin. Any advice? I've increased memory to 2Gb. This is the first time I used Jenkins with Tomcat. I'm wondering if there's an issue with Tomcat. -- David Weintraub da...@weintraub.name