Re: parallel builds on single Hudson possible - quick question

2012-11-15 Thread Mark Waite
I'm sorry, but I don't know of alternatives to deal with parallel build 
requests in Hudson.   I stopped using Hudson shortly after Kohsuke Kawaguchi 
and most of the other developers moved from the Hudson project to the Jenkins 
project.  

I'm a little surprised that you're using the Jenkins mailing list to ask a 
Hudson specific question.  You might consider the Hudson mailing list for your 
question instead.


You might also refer 
to https://wiki.jenkins-ci.org/pages/viewpage.action?pageId=53608972 for some 
reasons to switch from Hudson to Jenkins.

Mark Waite



>
> From: Z W 
>To: jenkinsci-users@googlegroups.com 
>Sent: Thursday, November 15, 2012 5:15 PM
>Subject: Re: parallel builds on single Hudson possible - quick question
> 
>Hi Mark
>
>Thanks for responding.
>What's are alternatives out there for Hudson to deal with parallel
>builds requests besides upgrading to Jenkins.
>
>
>On Tue, Nov 13, 2012 at 8:14 PM, Mark Waite  wrote:
>> In the Jenkins job configuration screen, there is a check box "Execute
>> concurrent builds if necessary".  I don't know if that feature is available
>> in Hudson or not.  It may have been added after most of the developers
>> switched from Hudson to Jenkins.
>>
>> Mark Waite
>>
>> 
>> From: Z W 
>> To: jenkinsci-users@googlegroups.com
>> Sent: Tuesday, November 13, 2012 8:03 PM
>> Subject: parallel builds on single Hudson possible - quick question
>>
>> Hi All
>>
>> We have a single Hudson server and we like to perform parallel builds
>> for multiple different builds.
>> Can Hudson support that, meaning one job starts at 815am and another
>> at 820am so in the build queue there would be 2 paralllel builds ?
>> If not, what's the usual practice to support multiple concurrent
>> builds ? Is that using a single Hudson or multiple Hudson servers ?
>>
>> Thanks
>>
>>
>
>
>

RE: parallel builds on single Hudson possible - quick question

2012-11-15 Thread Merrow, Frank
DISCLAIMER: We use Jenkins . . . I've never used Hudson . . .

Your wording seemed fuzzy me so . . . so I thought I would offer this:

We build multiple flavors against the same source (Win32, Win64, Linux as 
examples).

Each flavor has its own job . . . when somebody checks in, several jobs are 
likely to kick off at once and depending on available executors may run in 
parallel.

I'm not sure if that applies to your situation or not.

Frank

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Z W
Sent: Thursday, November 15, 2012 4:15 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: parallel builds on single Hudson possible - quick question

Hi Mark

Thanks for responding.
What's are alternatives out there for Hudson to deal with parallel builds 
requests besides upgrading to Jenkins.


On Tue, Nov 13, 2012 at 8:14 PM, Mark Waite  wrote:
> In the Jenkins job configuration screen, there is a check box "Execute 
> concurrent builds if necessary".  I don't know if that feature is 
> available in Hudson or not.  It may have been added after most of the 
> developers switched from Hudson to Jenkins.
>
> Mark Waite
>
> 
> From: Z W 
> To: jenkinsci-users@googlegroups.com
> Sent: Tuesday, November 13, 2012 8:03 PM
> Subject: parallel builds on single Hudson possible - quick question
>
> Hi All
>
> We have a single Hudson server and we like to perform parallel builds 
> for multiple different builds.
> Can Hudson support that, meaning one job starts at 815am and another 
> at 820am so in the build queue there would be 2 paralllel builds ?
> If not, what's the usual practice to support multiple concurrent 
> builds ? Is that using a single Hudson or multiple Hudson servers ?
>
> Thanks
>
>


Re: parallel builds on single Hudson possible - quick question

2012-11-15 Thread Z W
Hi Mark

Thanks for responding.
What's are alternatives out there for Hudson to deal with parallel
builds requests besides upgrading to Jenkins.


On Tue, Nov 13, 2012 at 8:14 PM, Mark Waite  wrote:
> In the Jenkins job configuration screen, there is a check box "Execute
> concurrent builds if necessary".  I don't know if that feature is available
> in Hudson or not.  It may have been added after most of the developers
> switched from Hudson to Jenkins.
>
> Mark Waite
>
> 
> From: Z W 
> To: jenkinsci-users@googlegroups.com
> Sent: Tuesday, November 13, 2012 8:03 PM
> Subject: parallel builds on single Hudson possible - quick question
>
> Hi All
>
> We have a single Hudson server and we like to perform parallel builds
> for multiple different builds.
> Can Hudson support that, meaning one job starts at 815am and another
> at 820am so in the build queue there would be 2 paralllel builds ?
> If not, what's the usual practice to support multiple concurrent
> builds ? Is that using a single Hudson or multiple Hudson servers ?
>
> Thanks
>
>


Re: Clearcase-ucm-plugin option to "Build a specific baseline with a parameterized build" problem

2012-11-15 Thread marcdb
I think that with the baseline parameter, you have to specify the name of 
the baseline at runtime. So as such, it isn't very useful for scheduled 
builds.

But you could try if you can use environment variables in the name of the 
baseline. I would first try with something like $BUILD_ID and see if the
UCM-plugin recognizes this variable (it will give an error because you 
probably don't have such a baseline, but then at least you know you can use 
environment variables).
If this test is positive, you could use the EnvInject plugin, to inject 
your externally created baseline name by means of an environment variable 
into your build job.

P.S.: Maybe the Multijob plugin can also be helpful for setting up your 
complete chain of jobs.

Regards,
Marc 

Op woensdag 14 november 2012 12:40:15 UTC+1 schreef Ronan Mulvaney het 
volgende:
>
> Hi,
>  
> Has anyone any experience or knowledge of using the Clearcase-ucm-plugin 
> https://wiki.jenkins-ci.org/display/JENKINS/ClearCase+UCM+Plugin to build 
> with a specific baseline parameter.
>  
> My build is setup and can build without specifying a baseline which gives 
> me some confidence that it is setup correctly however when I try to use 
> this option to pass a specific baseline in I get an error:
>  
> [CCUCM] Could not find baseline from parameter ''.
>  
> The baselines that we use are a simple format _ 
> and there are not set by Jenkins but are valid UCM baselines - just in case 
> it can only read previous baselines set by this plugin.
>  
> My goal in case there is another way of achieving it is for one build to 
> kick off another build which will create a specific baseline of a project 
> to build with. I can't seem to pass parameters to the ClearCase Baseline 
> UCM Plugin so was hoping this plugin would allow me to pass a string 
> baseline parameter as per the documentation and achieve the desired result.
>  
> Thanks,
>  
> Ronan
>


Re: Can anoyone help determine the cause of a Jenkins crash.

2012-11-15 Thread Scott Evans
What do you have for your java memory settings?  Primarily -Xmx would
define the max amount of memory your main java process can allocate.

Scott

On Thu, Nov 15, 2012 at 3:10 PM, MDKF  wrote:

> Can anyone help with this issue?
>
> On Monday, November 12, 2012 10:36:13 AM UTC-5, MDKF wrote:
>>
>> Hi All,
>>  My Jenkins server died last night. I found the following text in the
>> error log. Can anyone help me decipher what happened? Ive had these out of
>> memory exceptions before.
>>
>>
>> Nov 11, 2012 12:39:50 AM winstone.Logger logInternal
>> SEVERE: Error while serving http://nwd2hscjnks/job/**
>> VectorGenerator/api/xml 
>> java.lang.reflect.**InvocationTargetException
>> at sun.reflect.**GeneratedMethodAccessor106.**invoke(Unknown Source)
>> at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(Unknown
>> Source)
>> at java.lang.reflect.Method.**invoke(Unknown Source)
>> at org.kohsuke.stapler.Function$**InstanceFunction.invoke(**
>> Function.java:288)
>> at org.kohsuke.stapler.Function.**bindAndInvoke(Function.java:**151)
>> at org.kohsuke.stapler.Function.**bindAndInvokeAndServeResponse(**
>> Function.java:90)
>> 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:574)
>> at org.kohsuke.stapler.Stapler.**invoke(Stapler.java:659)
>> at org.kohsuke.stapler.MetaClass$**4.doDispatch(MetaClass.java:**203)
>> at org.kohsuke.stapler.**NameBasedDispatcher.dispatch(**
>> NameBasedDispatcher.java:53)
>> at org.kohsuke.stapler.Stapler.**tryInvoke(Stapler.java:574)
>> at org.kohsuke.stapler.Stapler.**invoke(Stapler.java:659)
>> 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:574)
>> at org.kohsuke.stapler.Stapler.**invoke(Stapler.java:659)
>> at org.kohsuke.stapler.Stapler.**invoke(Stapler.java:488)
>> at org.kohsuke.stapler.Stapler.**service(Stapler.java:162)
>> at javax.servlet.http.**HttpServlet.service(**HttpServlet.java:45)
>> at winstone.ServletConfiguration.**execute(ServletConfiguration.**
>> java:248)
>> at winstone.RequestDispatcher.**forward(RequestDispatcher.**java:333)
>> at winstone.RequestDispatcher.**doFilter(RequestDispatcher.**
>> java:376)
>> at hudson.util.**PluginServletFilter$1.**
>> doFilter(PluginServletFilter.**java:95)
>> at hudson.util.**PluginServletFilter.doFilter(**
>> PluginServletFilter.java:87)
>> at winstone.FilterConfiguration.**execute(FilterConfiguration.**
>> java:194)
>> at winstone.RequestDispatcher.**doFilter(RequestDispatcher.**
>> java:366)
>> at hudson.security.csrf.**CrumbFilter.doFilter(**CrumbFilter.java:47)
>> at winstone.FilterConfiguration.**execute(FilterConfiguration.**
>> java:194)
>> at winstone.RequestDispatcher.**doFilter(RequestDispatcher.**
>> java:366)
>> 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:63)
>> at hudson.security.**ChainedServletFilter$1.**
>> doFilter(ChainedServletFilter.**java:87)
>> at org.acegisecurity.context.**HttpSessionContextIntegrationF**
>> ilter.doFilter(**HttpSessionContextIntegrationF**ilter.java:249)
>> at hudson.security.**HttpSessionContextIntegrationF**ilter2.doFilter(
>> **HttpSessionCon

Job Templatator

2012-11-15 Thread Daniel PETISME
Hello all,

I'm searching for a template job creator. My aim is to define a template 
job/flow of jobs and then make them template to create a new kind of 
projects in the "New Job" dialog.

I'm aware of the plugins:
https://wiki.jenkins-ci.org/display/JENKINS/Template+Project+Plugin
https://wiki.jenkins-ci.org/display/JENKINS/Template+Workflows+Plugin

But they don't feed my needs.

I've once heard about the Nectar template plugin but I can't found it in 
the latest Nectar release. Any clue ?

So basically my questions are:

   1. Do you manage kinds of archetypes/templates/New projects entries in 
   your Jenkins
   2. If yes, how ? which practices/plugins?
   3. Do you suceed to implement such behavior with flows of jobs?


In advance, thank you for your comments.

Regards
Daniel



Re: Can anoyone help determine the cause of a Jenkins crash.

2012-11-15 Thread MDKF
Can anyone help with this issue?

On Monday, November 12, 2012 10:36:13 AM UTC-5, MDKF wrote:
>
> Hi All,
>  My Jenkins server died last night. I found the following text in the 
> error log. Can anyone help me decipher what happened? Ive had these out of 
> memory exceptions before.
>
>
> Nov 11, 2012 12:39:50 AM winstone.Logger logInternal
> SEVERE: Error while serving http://nwd2hscjnks/job/VectorGenerator/api/xml
> java.lang.reflect.InvocationTargetException
> at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at 
> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
> at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
> at 
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
> 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:574)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
> at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:203)
> at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
> 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:574)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488)
> at org.kohsuke.stapler.Stapler.service(Stapler.java:162)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
> at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
> at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
> at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
> at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
> at 
> hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
> at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
> at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
> at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
> at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
> at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
> 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:63)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at 
> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
> at 
> hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at 
> hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
> at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
> at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
> at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
> at 
> org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
> at winstone.FilterConfiguration.execute(FilterConfiguration.java:

Integrating sventon with Jenkins

2012-11-15 Thread Sam Gleske
I'm having trouble integrating either sventon 2.1 or 2.5 with Jenkins.

In configure settings for the SVN plugin I select sventon 2.x compatibility 
but I'm having trouble defining the settings.  Server ok; hooks up fine.  
But the Repository Instance is what is giving me problems.  There is no 
repobrowser.svn URL in sventon 2.5 nor sventon 2.1.  I can't find much 
documentation on the integration of sventon with Jenkins and people claim 
it just works.

My sventon install works just fine standalone when I visit 
https://someserver/svn.

Any insight would be much appreciated.

SAM


Disable git auto tagging

2012-11-15 Thread Robert Krüger
Hi,

I want to keep some of my Jenkins (v. 1.490) builds from tagging my Git
repository. I came across this link:
https://issues.jenkins-ci.org/browse/JENKINS-12316 and I have the exact
same problem as the last poster, i.e. the advanced option does not seem to
be there anymore. Is it gone? What else can I do?

Thanks in advance,

Robert


Builds failing with cvs problem.

2012-11-15 Thread DaveS
I updated Jenkins to 1.466.2 and all the plugins also. The Jenkins CVS 
plugin is now 2.7
Since doing the updates the builds are failing with something like this:

cvs server: .plist is locally modified
cvs [server aborted]: correct the above errors first!

Before the updates, the 1st thing that was run in the build was this:
[workspace] $ /Developer_4.2/usr/bin/cvs -q -z3 update -PdC -D "Friday, 
November 9, 2012 7:26:40 PM UTC"
(Locally modified .plist moved to .#xxx.plist.1.2)

and that doesn't happen now.  To the best of my knowledge, that isn't 
configured anywhere on our system and
the only updating done was the Jenkins updates.  We do modify the .plists 
during the build, so it is expected
that they are locally modified.  I can add a postbuild step to every build to 
delete the .plists, but that
isn't ideal.  So I am wondering did something change in the Jenkins CVS plugin 
to cause this to start happening?
Thanks.







Re: a lot of jobs

2012-11-15 Thread Marek Gimza
Marcin,

Do you know about the "MultiJob" plugin?

https://wiki.jenkins-ci.org/display/JENKINS/Multijob+Plugin

Regards,
Mgimza

On Wed, Nov 14, 2012 at 7:39 PM, Marcin Biegan wrote:

> Hi,
>
> I wanted to ask how do you handle configuring multiple jobs. We have
> about 10 maven projects to build in at least 2 versions (trunk/
> branch), which makes 20 jobs, some more for additional tests,
> releases, maybe deployment, verification, etc. Manually adding
> permissions and adjusting configuration of jobs is cumbersome. Is
> there a working plugin which would allow to set some 'parent' job
> which would define default configuration? (Template Project Plugin is
> not enough, because it 'works' only at job creation). I know also
> about Configuration Slicing Plugin, but this will not work in my case
> as it requires admin permissions.
>
> Thanks
> Marcin Biegan
>


RE: Exception while using groovy-html.template in editable eamil

2012-11-15 Thread Alex Earl
 notification
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="=_Part_1555_14652804.1352977427918"

--=_Part_1555_14652804.1352977427918
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

You don't need to worry about init.groovy, it is not currently used. It
looks like you need to upgrade your version of email-ext.

Sent from my Windows Phone
From: Sven Finsterwalder
Sent: 11/15/2012 3:03 AM
To: jenkinsci-users@googlegroups.com
Subject: Exception while using groovy-html.template in editable eamil
notification
Hi all,

i try to send an email and i got that error:

Nov 15, 2012 11:59:38 AM hudson.plugins.emailext.plugins.content.ScriptContent
SEVERE: null
javax.script.ScriptException: javax.script.ScriptException:
groovy.lang.MissingPropertyException: No such property: Jenkins for
class: SimpleTemplateScript5
at 
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:117)
at 
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:103)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
at 
hudson.plugins.emailext.plugins.content.ScriptContent.renderContent(ScriptContent.java:163)
at 
hudson.plugins.emailext.plugins.content.ScriptContent.getContent(ScriptContent.java:121)
at 
hudson.plugins.emailext.plugins.ContentBuilder.replaceTokensWithContent(ContentBuilder.java:115)
at 
hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:88)
at 
hudson.plugins.emailext.ExtendedEmailPublisher.getContent(ExtendedEmailPublisher.java:540)
at 
hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:363)
at 
hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:273)
at 
hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:265)
at 
hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:225)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:192)
at hudson.model.Run.execute(Run.java:1560)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
Caused by: javax.script.ScriptException:
groovy.lang.MissingPropertyException: No such property: Jenkins for
class: SimpleTemplateScript5
at 
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:318)
at 
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:111)
... 19 more
Caused by: groovy.lang.MissingPropertyException: No such property:
Jenkins for class: SimpleTemplateScript5
at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
at 
org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
at SimpleTemplateScript5.run(SimpleTemplateScript5.groovy:223)
at 
groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:165)
at 
groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:177)
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:601)
at 
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:230)
at 
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at Script5.run(Script5.groovy:12)
at 
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:315)
... 20 more


Nov 15, 2012 11:59:38 AM hudson.plugins.emailext.plugins.content.ScriptContent
SEVERE: Exception on init file: java.io.FileNotFoundException:
/home/hudson/email-templates/groovy/init.groovy (No such file or
directory)

Nov 15, 2012 1

Re: Exception while using groovy-html.template in editable eamil notification

2012-11-15 Thread AdvanTiSS
You should declare imports for referenced classes 

On Thursday, November 15, 2012 1:03:47 PM UTC+2, Sven Finsterwalder wrote:
>
> Hi all,
>
> i try to send an email and i got that error:
>
> Nov 15, 2012 11:59:38 AM hudson.plugins.emailext.plugins.content.ScriptContent
> SEVERE: null
> javax.script.ScriptException: javax.script.ScriptException: 
> groovy.lang.MissingPropertyException: No such property: Jenkins for class: 
> SimpleTemplateScript5
>   at 
> org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:117)
>   at 
> org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:103)
>   at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
>   at 
> hudson.plugins.emailext.plugins.content.ScriptContent.renderContent(ScriptContent.java:163)
>   at 
> hudson.plugins.emailext.plugins.content.ScriptContent.getContent(ScriptContent.java:121)
>   at 
> hudson.plugins.emailext.plugins.ContentBuilder.replaceTokensWithContent(ContentBuilder.java:115)
>   at 
> hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:88)
>   at 
> hudson.plugins.emailext.ExtendedEmailPublisher.getContent(ExtendedEmailPublisher.java:540)
>   at 
> hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:363)
>   at 
> hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:273)
>   at 
> hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:265)
>   at 
> hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:225)
>   at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779)
>   at hudson.model.Build$BuildExecution.cleanUp(Build.java:192)
>   at hudson.model.Run.execute(Run.java:1560)
>   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
>   at hudson.model.ResourceController.execute(ResourceController.java:88)
>   at hudson.model.Executor.run(Executor.java:236)
> Caused by: javax.script.ScriptException: 
> groovy.lang.MissingPropertyException: No such property: Jenkins for class: 
> SimpleTemplateScript5
>   at 
> org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:318)
>   at 
> org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:111)
>   ... 19 more
> Caused by: groovy.lang.MissingPropertyException: No such property: Jenkins 
> for class: SimpleTemplateScript5
>   at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
>   at 
> org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
>   at SimpleTemplateScript5.run(SimpleTemplateScript5.groovy:223)
>   at 
> groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:165)
>   at 
> groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:177)
>   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:601)
>   at 
> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:230)
>   at 
> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
>   at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
>   at Script5.run(Script5.groovy:12)
>   at 
> org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:315)
>   ... 20 more
>
>
> Nov 15, 2012 11:59:38 AM hudson.plugins.emailext.plugins.content.ScriptContent
> SEVERE: Exception on init file: java.io.FileNotFoundException: 
> /home/hudson/email-templates/groovy/init.groovy (No such file or directory)
>
> Nov 15, 2012 11:59:38 AM hudson.model.Run
> INFO: dploytest #5 main build action completed: SUCCESS
>
>
> How can i resolve that problem? And where i can find the init.groovy script?
>
>
>

Exception while using groovy-html.template in editable eamil notification

2012-11-15 Thread Sven Finsterwalder
Hi all,

i try to send an email and i got that error:

Nov 15, 2012 11:59:38 AM hudson.plugins.emailext.plugins.content.ScriptContent
SEVERE: null
javax.script.ScriptException: javax.script.ScriptException: 
groovy.lang.MissingPropertyException: No such property: Jenkins for class: 
SimpleTemplateScript5
at 
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:117)
at 
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:103)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
at 
hudson.plugins.emailext.plugins.content.ScriptContent.renderContent(ScriptContent.java:163)
at 
hudson.plugins.emailext.plugins.content.ScriptContent.getContent(ScriptContent.java:121)
at 
hudson.plugins.emailext.plugins.ContentBuilder.replaceTokensWithContent(ContentBuilder.java:115)
at 
hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:88)
at 
hudson.plugins.emailext.ExtendedEmailPublisher.getContent(ExtendedEmailPublisher.java:540)
at 
hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:363)
at 
hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:273)
at 
hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:265)
at 
hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:225)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:192)
at hudson.model.Run.execute(Run.java:1560)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
Caused by: javax.script.ScriptException: groovy.lang.MissingPropertyException: 
No such property: Jenkins for class: SimpleTemplateScript5
at 
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:318)
at 
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:111)
... 19 more
Caused by: groovy.lang.MissingPropertyException: No such property: Jenkins for 
class: SimpleTemplateScript5
at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
at 
org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
at SimpleTemplateScript5.run(SimpleTemplateScript5.groovy:223)
at 
groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:165)
at 
groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:177)
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:601)
at 
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:230)
at 
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at Script5.run(Script5.groovy:12)
at 
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:315)
... 20 more


Nov 15, 2012 11:59:38 AM hudson.plugins.emailext.plugins.content.ScriptContent
SEVERE: Exception on init file: java.io.FileNotFoundException: 
/home/hudson/email-templates/groovy/init.groovy (No such file or directory)

Nov 15, 2012 11:59:38 AM hudson.model.Run
INFO: dploytest #5 main build action completed: SUCCESS


How can i resolve that problem? And where i can find the init.groovy script?




Re: How to keep slaves updated

2012-11-15 Thread Vincent Latombe
Use "*Let Jenkins control this Windows slave as a Windows service*"
You'll need to provide a user able to remote log in to the slave.
Then you can choose whether you want to install the service as the Local
System, as the administrator account, or as another account.

Vincent


2012/11/14 Diogo Guerra 

> "On recent Jenkins (~>1.450) you can install windows slave directly from
> Jenkins (and run it using a specific user if required), you don't need to
> use JNLP anymore."
>
> How should I configure the node then?
>
> --Diogo
>
>
>
> On Wed, Nov 14, 2012 at 10:29 PM, Vincent Latombe <
> vincent.lato...@gmail.com> wrote:
>
>> Hello,
>>
>> On recent Jenkins (~>1.450) you can install windows slave directly from
>> Jenkins (and run it using a specific user if required), you don't need to
>> use JNLP anymore, and slave.jar is updated each time you restart the master
>> (each time the master connects to the slave to start its service actually)
>>
>> Cheers,
>>
>> Vincent
>>
>>
>>
>> 2012/11/14 Harpreet singh Wadhwa 
>>
>>> Don't know how it happens with JNLP, but for Linux machines (over SSH).
>>> It will update it automatically, when ever slave.jar is updated on
>>> master and connection (ssh) is restarted.
>>>
>>> PS: If you see connection logs (on the Jenkins UI), you will see it
>>> updating the slave.jar file.
>>> Thanks
>>>
>>>
>>> On Wed, Nov 14, 2012 at 1:03 PM, Diogo Guerra wrote:
>>>
 Hi, out setup we have two types of slaves:
  - windows through jnlp with a windows service.
  - linux with ssh.

 On the windows ones we had to download the jenkins windows version and
 configure the jenkins-slave.xml and then we only have the jenkins-slave
 service to start and not the jenkins master one.

 On linux we just had to give the ssh credentials and jenkins did its
 magic.

 Our master runs on CentOS and we update via yum. Now I'm wondering what
 is the procedure to update jenkins on slaves?

 On linux we need to re-install via the windows installer?

 What about linux slaves?

>>>
>>>
>>>
>>> --
>>>
>>> http://wharpreet.blogspot.com
>>> http://linuxgazettes.blogspot.com
>>> http://in.linkedin.com/in/wharpreet
>>>
>>>
>>
>