Jenkins won't start on Ubuntu
Hi Jenkins people, I'm trying to run Jenkins on Ubuntu 8.04.2. Being a Ruby on Rails guy I know zilch about Java but I can tell that Jenkins isn't working :) When I run /etc/init.d/jenkins start, i get this output in the jenkins.log: Running from: /usr/share/jenkins/jenkins.war 11-Apr-12 12:13:36 AM winstone.Logger logInternal INFO: Beginning extraction from war file 11-Apr-12 12:13:38 AM hudson.WebAppMain contextInitialized SEVERE: Failed to initialize Jenkins java.lang.ExceptionInInitializerError at java.lang.Class.initializeClass(libgcj.so.71) at hudson.WebAppMain.installLogger(WebAppMain.java:256) at hudson.WebAppMain.contextInitialized(WebAppMain.java:107) at winstone.WebAppConfiguration.init(WebAppConfiguration.java:875) at winstone.HostConfiguration.initWebApp(HostConfiguration.java:129) at winstone.HostConfiguration.init(HostConfiguration.java:71) at winstone.HostGroup.initHost(HostGroup.java:87) at winstone.HostGroup.init(HostGroup.java:47) at winstone.Launcher.init(Launcher.java:177) at winstone.Launcher.main(Launcher.java:384) at java.lang.reflect.Method.invoke(libgcj.so.71) at Main._main(Main.java:273) at Main.main(Main.java:98) Caused by: java.lang.NullPointerException at com.thoughtworks.xstream.core.JVM.isOpenJDK(JVM.java:72) at com.thoughtworks.xstream.core.JVM.canUseSun14ReflectionProvider(JVM.java:198) at com.thoughtworks.xstream.core.JVM.bestReflectionProvider(JVM.java:175) at com.thoughtworks.xstream.XStream.init(XStream.java:431) at com.thoughtworks.xstream.XStream.init(XStream.java:385) at com.thoughtworks.xstream.XStream.init(XStream.java:323) at hudson.util.XStream2.init(XStream2.java:75) at jenkins.model.Jenkins.clinit(Jenkins.java:3677) at java.lang.Class.initializeClass(libgcj.so.71) ...12 more 11-Apr-12 12:13:38 AM winstone.Logger logInternal SEVERE: Error during context startup for webapp webapp java.lang.ExceptionInInitializerError at java.lang.Class.initializeClass(libgcj.so.71) at hudson.WebAppMain.installLogger(WebAppMain.java:256) at hudson.WebAppMain.contextInitialized(WebAppMain.java:107) at winstone.WebAppConfiguration.init(WebAppConfiguration.java:875) at winstone.HostConfiguration.initWebApp(HostConfiguration.java:129) at winstone.HostConfiguration.init(HostConfiguration.java:71) at winstone.HostGroup.initHost(HostGroup.java:87) at winstone.HostGroup.init(HostGroup.java:47) at winstone.Launcher.init(Launcher.java:177) at winstone.Launcher.main(Launcher.java:384) at java.lang.reflect.Method.invoke(libgcj.so.71) at Main._main(Main.java:273) at Main.main(Main.java:98) Caused by: java.lang.NullPointerException at com.thoughtworks.xstream.core.JVM.isOpenJDK(JVM.java:72) at com.thoughtworks.xstream.core.JVM.canUseSun14ReflectionProvider(JVM.java:198) at com.thoughtworks.xstream.core.JVM.bestReflectionProvider(JVM.java:175) at com.thoughtworks.xstream.XStream.init(XStream.java:431) at com.thoughtworks.xstream.XStream.init(XStream.java:385) at com.thoughtworks.xstream.XStream.init(XStream.java:323) at hudson.util.XStream2.init(XStream2.java:75) at jenkins.model.Jenkins.clinit(Jenkins.java:3677) at java.lang.Class.initializeClass(libgcj.so.71) ...12 more 11-Apr-12 12:13:38 AM winstone.Logger logInternal INFO: HTTP Listener started: port= 11-Apr-12 12:13:39 AM winstone.Logger logInternal SEVERE: Error during servlet context shutdown java.lang.NoClassDefFoundError: jenkins.model.Jenkins at java.lang.Class.initializeClass(libgcj.so.71) at hudson.WebAppMain.contextDestroyed(WebAppMain.java:339) at winstone.WebAppConfiguration.destroy(WebAppConfiguration.java:1149) at winstone.HostConfiguration.destroyWebApp(HostConfiguration.java:148) at winstone.HostConfiguration.destroy(HostConfiguration.java:156) at winstone.HostGroup.destroy(HostGroup.java:77) at winstone.Launcher.shutdown(Launcher.java:337) at winstone.Launcher.init(Launcher.java:199) at winstone.Launcher.main(Launcher.java:384) at java.lang.reflect.Method.invoke(libgcj.so.71) at Main._main(Main.java:273) at Main.main(Main.java:98) 11-Apr-12 12:13:39 AM winstone.Logger logInternal INFO: HTTP Listener shutdown successfully 11-Apr-12 12:13:39 AM winstone.Logger logInternal INFO: Winstone shutdown successfully 11-Apr-12 12:13:39 AM winstone.Logger logInternal SEVERE: Container startup failed java.io.IOException: Failed to start a listener: winstone.ssl.HttpsListener at winstone.Launcher.spawnListener(Launcher.java:229) at winstone.Launcher.init(Launcher.java:185) at winstone.Launcher.main(Launcher.java:384) at java.lang.reflect.Method.invoke(libgcj.so.71) at Main._main(Main.java:273) at Main.main(Main.java:98) Caused by: java.lang.NoClassDefFoundError: winstone.ssl.HttpsListener at java.lang.Class.initializeClass(libgcj.so.71) at java.lang.Class.forName(libgcj.so.71) at java.lang.Class.forName(libgcj.so.71) at
Plugin warning when restarting jenkins
Hi, When I have restarted my Jenkins version 1.424, I have seen the below mentioned warning in my Jenkins log. I dont know what it means. please can any one advice me, what is wrong in my jenkins plug-in, i am using jdk 1.6. i am running jenkins using /var/lib/jenkins -jar /usr/lib/ jenkins/jenkins.war in Red hat Linux. please advice me on the below mentioned warning. WARNING: Failed to resolve class com.thoughtworks.xstream.mapper.CannotResolveClassException: org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger : org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java: 68) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java: 71) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java: 88) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java: 86) Apr 11, 2012 12:51:40 PM hudson.util.CopyOnWriteList$ConverterImpl unmarshal WARNING: Failed to resolve class com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.plugins.postbuildtask.PostbuildTask : hudson.plugins.postbuildtask.PostbuildTask at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java: 68) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java: 71) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java: 88) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java: 86) Apr 11, 2012 1:18:26 PM hudson.util.RobustCollectionConverter populateCollection WARNING: Failed to resolve class com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.model.Cause$UserIdCause : hudson.model.Cause$UserIdCause at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java: 68) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java: 71) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java: 88) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java: 86) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38)
Re: Plugin warning when restarting jenkins
Seems that some previously installed plug-ins are not installed anymore. Try to install the plug-ins buildresulttrigger and postbuildtask. Or, if you don't need these plug-ins, discard the data using the corresponding button in Jenkins management screen. Ulli On 04/11/2012 09:43 AM, Suri wrote: Hi, When I have restarted my Jenkins version 1.424, I have seen the below mentioned warning in my Jenkins log. I dont know what it means. please can any one advice me, what is wrong in my jenkins plug-in, i am using jdk 1.6. i am running jenkins using /var/lib/jenkins -jar /usr/lib/ jenkins/jenkins.war in Red hat Linux. please advice me on the below mentioned warning. WARNING: Failed to resolve class com.thoughtworks.xstream.mapper.CannotResolveClassException: org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger : org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java: 68) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java: 71) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java: 88) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java: 86) Apr 11, 2012 12:51:40 PM hudson.util.CopyOnWriteList$ConverterImpl unmarshal WARNING: Failed to resolve class com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.plugins.postbuildtask.PostbuildTask : hudson.plugins.postbuildtask.PostbuildTask at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java: 68) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java: 71) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java: 88) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java: 86) Apr 11, 2012 1:18:26 PM hudson.util.RobustCollectionConverter populateCollection WARNING: Failed to resolve class com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.model.Cause$UserIdCause : hudson.model.Cause$UserIdCause at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java: 68) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java: 71) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java: 88) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java: 86) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java: 38)
How to make a shell script quieter?
Hi Some of my Jenkins jobs run bash shell scripts that are stored in Subversion. The scripts are quite complex and may contain 'for' loops: For example: for Simulation in $SimulationsList_1 do cd $SIM_PATH_1/$Simulation zip -qr $SIM_PATH_1/$Simulation'_'$BUILD_NUMBER * done The Jenkins console output for such a loop is quite noisy. For example, the 'for' statement is printed in every iteration. Is there a way of making a script command silent? For example, I would like to make the line containing 'for' silent. Best regards David
Warnings Plugin and Mail-ext Integration
Regarding the Warnings plugin - is there anyway I can access warning information for the current build from a mail-ext groovy template by using the hudson/jenkins model API? Or would I use the token macro expansion plugin in some way? I was wondering if there was a documented way of gaining access to the WarningsResult and WarningsResultAction so I could access the getSummary method from within the mail template (or iterate over other information if necessary) in a similar way to accessing JUnit test results? I wondered if there was a standard way for plugins to publish their action results into the Hudson model so that post build actions could retrieve and process them, -- Regards Darren
Re: How to make a shell script quieter?
Jenkins build steps call shell scripts with the option -x, this enables the tracing of the shell script. use set +x in your shell script or at the beginning of the build step script to turn the tracing off again. Normally the noisiness is very helpful to check if the build has done properly Regards Wolfgang
Re: How to make a shell script quieter?
Hi, it's more a bash question than jenkins, but the point is, Jenkins calls the bash with -x option enabled, which also prints the invoked commands, with a + prefix You can disable it with with the set +x command form your script, try it with this snippet: #!/bin/bash -x echo prints the command as well set +x echo this just prints the echo's output set -x echo also prints the command itself again br, Zoltan On 04/11/2012 11:15 AM, David Aldrich wrote: Hi Some of my Jenkins jobs run bash shell scripts that are stored in Subversion. The scripts are quite complex and may contain 'for' loops: For example: for Simulation in $SimulationsList_1 do cd $SIM_PATH_1/$Simulation zip -qr $SIM_PATH_1/$Simulation'_'$BUILD_NUMBER * done The Jenkins console output for such a loop is quite noisy. For example, the 'for' statement is printed in every iteration. Is there a way of making a script command silent? For example, I would like to make the line containing 'for' silent. Best regards David
Re: Warnings Plugin and Mail-ext Integration
I haven't yet done that but it should be possible to access the objects using this method from your script: WarningsResultAction action = getAction(hudson.plugins.warnings.WarningsResultAction) From this object you get the result using action.getResult() Maybe we can work together on making an example for the warnings plug-in so that I can include it on the wiki page? Ulli On 04/11/2012 11:25 AM, Darren Syzling wrote: Regarding the Warnings plugin - is there anyway I can access warning information for the current build from a mail-ext groovy template by using the hudson/jenkins model API? Or would I use the token macro expansion plugin in some way? I was wondering if there was a documented way of gaining access to the WarningsResult and WarningsResultAction so I could access the getSummary method from within the mail template (or iterate over other information if necessary) in a similar way to accessing JUnit test results? I wondered if there was a standard way for plugins to publish their action results into the Hudson model so that post build actions could retrieve and process them,
Is there a bug in the EnvInject plugin?
I am seeing very odd behaviour after using the EnvInject plugin. I have created a job and all it does is print it's workspace path. Somehow the workspace is not as expected and it actually uses another job's workspace instead! What is going on? I notice that the jobName\builds\build_id\injectedEnvVars.txt file contains the incorrect workspace path.
RE: How to make a shell script quieter?
Thanks for both answers, David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Zoltan Gyarmati Sent: 11 April 2012 10:42 To: jenkinsci-users@googlegroups.com Subject: Re: How to make a shell script quieter? Hi, it's more a bash question than jenkins, but the point is, Jenkins calls the bash with -x option enabled, which also prints the invoked commands, with a + prefix You can disable it with with the set +x command form your script, try it with this snippet: #!/bin/bash -x echo prints the command as well set +x echo this just prints the echo's output set -x echo also prints the command itself again br, Zoltan On 04/11/2012 11:15 AM, David Aldrich wrote: Hi Some of my Jenkins jobs run bash shell scripts that are stored in Subversion. The scripts are quite complex and may contain 'for' loops: For example: for Simulation in $SimulationsList_1 do cd $SIM_PATH_1/$Simulation zip -qr $SIM_PATH_1/$Simulation'_'$BUILD_NUMBER * done The Jenkins console output for such a loop is quite noisy. For example, the 'for' statement is printed in every iteration. Is there a way of making a script command silent? For example, I would like to make the line containing 'for' silent. Best regards David Click herehttps://www.mailcontrol.com/sr/IGlCpnIFR5nTndxI!oX7UpXM+ujx+BRVUbign9kh9L+xtfH49bcDKnZoQrVI9fB3LXt49SsZdsqzpFBU8KFm0g== to report this email as spam.
Re: Warnings Plugin and Mail-ext Integration
Ulli, I'd be happy to work on something together. I did however try a few variants but the hudson.plugins.warnings.WarningsResultAction class could not be found, I tried variants of this: warningsResultAction = build.getAction(Class.forName(hudson.plugins.warnings.WarningsResultAction)) warningsResultAction = build.getAction(hudson.plugins.warnings.WarningsResultAction.class) and using the class loader: ClassLoader cl = it.class.getClassLoader() def warningsClass = cl.loadClass(hudson.plugins.warnings.WarningsResultAction, true) Is there something different about the groovy parser engine loaded by email-ext which would mean other plugin classes were not available. Unfortunately I then decided to upgrade to Jenkins 1.459 along with: Static analysis utilities 1.38 Warnings 3.28 Static analysis collector 1.24 Email-ext 2.18 This has broken my ability to build and configure the project, when I build: 11-Apr-2012 13:55:43 hudson.model.Executor run SEVERE: Executor threw an exception java.lang.AssertionError: class hudson.plugins.warnings.WarningsPublisher is missing its descriptor at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1076) at hudson.tasks.Publisher.getDescriptor(Publisher.java:123) at hudson.tasks.Recorder.getDescriptor(Recorder.java:51) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:323) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:41) at hudson.model.Descriptor.toMap(Descriptor.java:873) at hudson.util.DescribableList.toMap(DescribableList.java:128) at hudson.model.Project.getPublishers(Project.java:109) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1457) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) and when I try and configure the project I can't access email-ext or warnings configuration information: 11-Apr-2012 13:46:50 hudson.ExpressionFactory2$JexlExpression evaluate WARNING: Caught exception evaluating: i.descriptor. Reason: java.lang.reflect.InvocationTargetExcept ion java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectIm pl.java:314) at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185) at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:5 1) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72) at org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134) On 11 April 2012 10:53, Ullrich Hafner ullrich.haf...@gmail.com wrote: I haven't yet done that but it should be possible to access the objects using this method from your script: WarningsResultAction action = getAction(hudson.plugins.warnings.WarningsResultAction) From this object you get the result using action.getResult() Maybe we can work together on making an example for the warnings plug-in so that I can include it on the wiki page? Ulli On 04/11/2012 11:25 AM, Darren Syzling wrote: Regarding the Warnings plugin - is there anyway I can access warning information for the current build from a mail-ext groovy template by using the hudson/jenkins model API? Or would I use the token macro expansion plugin in some way? I was wondering if there was a documented way of gaining access to the WarningsResult and WarningsResultAction so I could access the getSummary method from within the mail template (or iterate over other information if necessary) in a similar way to accessing JUnit test results? I wondered if there was a standard way for plugins to publish their action results into the Hudson model so that post build actions could retrieve and process them, -- Regards Darren
Re: Warnings Plugin and Mail-ext Integration
I hope you mean email-ext 2.19. There is nothing different about the groovy implementation in email-ext, it uses the same one as the rest of Jenkins. On Apr 11, 2012 5:57 AM, Darren Syzling dsyzl...@gmail.com wrote: Ulli, I'd be happy to work on something together. I did however try a few variants but the hudson.plugins.warnings.WarningsResultAction class could not be found, I tried variants of this: warningsResultAction = build.getAction(Class.forName(hudson.plugins.warnings.WarningsResultAction)) warningsResultAction = build.getAction(hudson.plugins.warnings.WarningsResultAction.class) and using the class loader: ClassLoader cl = it.class.getClassLoader() def warningsClass = cl.loadClass(hudson.plugins.warnings.WarningsResultAction, true) Is there something different about the groovy parser engine loaded by email-ext which would mean other plugin classes were not available. Unfortunately I then decided to upgrade to Jenkins 1.459 along with: Static analysis utilities 1.38 Warnings 3.28 Static analysis collector 1.24 Email-ext 2.18 This has broken my ability to build and configure the project, when I build: 11-Apr-2012 13:55:43 hudson.model.Executor run SEVERE: Executor threw an exception java.lang.AssertionError: class hudson.plugins.warnings.WarningsPublisher is missing its descriptor at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1076) at hudson.tasks.Publisher.getDescriptor(Publisher.java:123) at hudson.tasks.Recorder.getDescriptor(Recorder.java:51) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:323) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:41) at hudson.model.Descriptor.toMap(Descriptor.java:873) at hudson.util.DescribableList.toMap(DescribableList.java:128) at hudson.model.Project.getPublishers(Project.java:109) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1457) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) and when I try and configure the project I can't access email-ext or warnings configuration information: 11-Apr-2012 13:46:50 hudson.ExpressionFactory2$JexlExpression evaluate WARNING: Caught exception evaluating: i.descriptor. Reason: java.lang.reflect.InvocationTargetExcept ion java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectIm pl.java:314) at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185) at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:5 1) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72) at org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134) On 11 April 2012 10:53, Ullrich Hafner ullrich.haf...@gmail.com wrote: I haven't yet done that but it should be possible to access the objects using this method from your script: WarningsResultAction action = getAction(hudson.plugins.warnings.WarningsResultAction) From this object you get the result using action.getResult() Maybe we can work together on making an example for the warnings plug-in so that I can include it on the wiki page? Ulli On 04/11/2012 11:25 AM, Darren Syzling wrote: Regarding the Warnings plugin - is there anyway I can access warning information for the current build from a mail-ext groovy template by using the hudson/jenkins model API? Or would I use the token macro expansion plugin in some way? I was wondering if there was a documented way of gaining access to the WarningsResult and WarningsResultAction so I could access the getSummary method from within the mail template (or iterate over other information if necessary) in a similar way to accessing JUnit test results? I wondered if there was a standard way for plugins to publish their action results into the Hudson model so that post build actions could
Re: Warnings Plugin and Mail-ext Integration
Yes sorry email-ext 2.19 installed. On 11 April 2012 14:05, Slide slide.o@gmail.com wrote: I hope you mean email-ext 2.19. There is nothing different about the groovy implementation in email-ext, it uses the same one as the rest of Jenkins. On Apr 11, 2012 5:57 AM, Darren Syzling dsyzl...@gmail.com wrote: Ulli, I'd be happy to work on something together. I did however try a few variants but the hudson.plugins.warnings.WarningsResultAction class could not be found, I tried variants of this: warningsResultAction = build.getAction(Class.forName(hudson.plugins.warnings.WarningsResultAction)) warningsResultAction = build.getAction(hudson.plugins.warnings.WarningsResultAction.class) and using the class loader: ClassLoader cl = it.class.getClassLoader() def warningsClass = cl.loadClass(hudson.plugins.warnings.WarningsResultAction, true) Is there something different about the groovy parser engine loaded by email-ext which would mean other plugin classes were not available. Unfortunately I then decided to upgrade to Jenkins 1.459 along with: Static analysis utilities 1.38 Warnings 3.28 Static analysis collector 1.24 Email-ext 2.18 This has broken my ability to build and configure the project, when I build: 11-Apr-2012 13:55:43 hudson.model.Executor run SEVERE: Executor threw an exception java.lang.AssertionError: class hudson.plugins.warnings.WarningsPublisher is missing its descriptor at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1076) at hudson.tasks.Publisher.getDescriptor(Publisher.java:123) at hudson.tasks.Recorder.getDescriptor(Recorder.java:51) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:323) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:41) at hudson.model.Descriptor.toMap(Descriptor.java:873) at hudson.util.DescribableList.toMap(DescribableList.java:128) at hudson.model.Project.getPublishers(Project.java:109) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1457) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) and when I try and configure the project I can't access email-ext or warnings configuration information: 11-Apr-2012 13:46:50 hudson.ExpressionFactory2$JexlExpression evaluate WARNING: Caught exception evaluating: i.descriptor. Reason: java.lang.reflect.InvocationTargetExcept ion java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectIm pl.java:314) at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185) at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:5 1) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72) at org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134) On 11 April 2012 10:53, Ullrich Hafner ullrich.haf...@gmail.com wrote: I haven't yet done that but it should be possible to access the objects using this method from your script: WarningsResultAction action = getAction(hudson.plugins.warnings.WarningsResultAction) From this object you get the result using action.getResult() Maybe we can work together on making an example for the warnings plug-in so that I can include it on the wiki page? Ulli On 04/11/2012 11:25 AM, Darren Syzling wrote: Regarding the Warnings plugin - is there anyway I can access warning information for the current build from a mail-ext groovy template by using the hudson/jenkins model API? Or would I use the token macro expansion plugin in some way? I was wondering if there was a documented way of gaining access to the WarningsResult and WarningsResultAction so I could access the getSummary method from within the mail template (or iterate over other information if necessary) in a similar way to accessing JUnit test results? I wondered if there was a standard way
Re: Warnings Plugin and Mail-ext Integration
Hmm, that is strange. Classloading should be straight forward. Seems that the installation is corrupt. Is the warnings plug-in showing up in Jenkins? Ulli On 04/11/2012 02:57 PM, Darren Syzling wrote: Ulli, I'd be happy to work on something together. I did however try a few variants but the hudson.plugins.warnings.WarningsResultAction class could not be found, I tried variants of this: warningsResultAction = build.getAction(Class.forName(hudson.plugins.warnings.WarningsResultAction)) warningsResultAction = build.getAction(hudson.plugins.warnings.WarningsResultAction.class) and using the class loader: ClassLoader cl = it.class.getClassLoader() def warningsClass = cl.loadClass(hudson.plugins.warnings.WarningsResultAction, true) Is there something different about the groovy parser engine loaded by email-ext which would mean other plugin classes were not available. Unfortunately I then decided to upgrade to Jenkins 1.459 along with: Static analysis utilities 1.38 Warnings 3.28 Static analysis collector 1.24 Email-ext 2.18 This has broken my ability to build and configure the project, when I build: 11-Apr-2012 13:55:43 hudson.model.Executor run SEVERE: Executor threw an exception java.lang.AssertionError: class hudson.plugins.warnings.WarningsPublisher is missing its descriptor at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1076) at hudson.tasks.Publisher.getDescriptor(Publisher.java:123) at hudson.tasks.Recorder.getDescriptor(Recorder.java:51) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:323) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:41) at hudson.model.Descriptor.toMap(Descriptor.java:873) at hudson.util.DescribableList.toMap(DescribableList.java:128) at hudson.model.Project.getPublishers(Project.java:109) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1457) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) and when I try and configure the project I can't access email-ext or warnings configuration information: 11-Apr-2012 13:46:50 hudson.ExpressionFactory2$JexlExpression evaluate WARNING: Caught exception evaluating: i.descriptor. Reason: java.lang.reflect.InvocationTargetExcept ion java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectIm pl.java:314) at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185) at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:5 1) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72) at org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134) On 11 April 2012 10:53, Ullrich Hafner ullrich.haf...@gmail.com wrote: I haven't yet done that but it should be possible to access the objects using this method from your script: WarningsResultAction action = getAction(hudson.plugins.warnings.WarningsResultAction) From this object you get the result using action.getResult() Maybe we can work together on making an example for the warnings plug-in so that I can include it on the wiki page? Ulli On 04/11/2012 11:25 AM, Darren Syzling wrote: Regarding the Warnings plugin - is there anyway I can access warning information for the current build from a mail-ext groovy template by using the hudson/jenkins model API? Or would I use the token macro expansion plugin in some way? I was wondering if there was a documented way of gaining access to the WarningsResult and WarningsResultAction so I could access the getSummary method from within the mail template (or iterate over other information if necessary) in a similar way to accessing JUnit test results? I wondered if there was a standard way for plugins to publish their action results into the Hudson model so that post build actions could
Re: Warnings Plugin and Mail-ext Integration
When I execute the following in Jenkins script console I correctly find the action of a build: println(hudson.model.Hudson.instance.getItem(Your Job Name).getLastBuild().getAction(hudson.plugins.warnings.WarningsResultAction.class)) BTW: Maybe we can discuss this topic in our IRC channel then we will have faster feedback than via mail? https://wiki.jenkins-ci.org/display/JENKINS/IRC+Channel Ulli On 04/11/2012 02:57 PM, Darren Syzling wrote: Ulli, I'd be happy to work on something together. I did however try a few variants but the hudson.plugins.warnings.WarningsResultAction class could not be found, I tried variants of this: warningsResultAction = build.getAction(Class.forName(hudson.plugins.warnings.WarningsResultAction)) warningsResultAction = build.getAction(hudson.plugins.warnings.WarningsResultAction.class) and using the class loader: ClassLoader cl = it.class.getClassLoader() def warningsClass = cl.loadClass(hudson.plugins.warnings.WarningsResultAction, true) Is there something different about the groovy parser engine loaded by email-ext which would mean other plugin classes were not available. Unfortunately I then decided to upgrade to Jenkins 1.459 along with: Static analysis utilities 1.38 Warnings 3.28 Static analysis collector 1.24 Email-ext 2.18 This has broken my ability to build and configure the project, when I build: 11-Apr-2012 13:55:43 hudson.model.Executor run SEVERE: Executor threw an exception java.lang.AssertionError: class hudson.plugins.warnings.WarningsPublisher is missing its descriptor at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1076) at hudson.tasks.Publisher.getDescriptor(Publisher.java:123) at hudson.tasks.Recorder.getDescriptor(Recorder.java:51) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:323) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:41) at hudson.model.Descriptor.toMap(Descriptor.java:873) at hudson.util.DescribableList.toMap(DescribableList.java:128) at hudson.model.Project.getPublishers(Project.java:109) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1457) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) and when I try and configure the project I can't access email-ext or warnings configuration information: 11-Apr-2012 13:46:50 hudson.ExpressionFactory2$JexlExpression evaluate WARNING: Caught exception evaluating: i.descriptor. Reason: java.lang.reflect.InvocationTargetExcept ion java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectIm pl.java:314) at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185) at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:5 1) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72) at org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134) On 11 April 2012 10:53, Ullrich Hafner ullrich.haf...@gmail.com wrote: I haven't yet done that but it should be possible to access the objects using this method from your script: WarningsResultAction action = getAction(hudson.plugins.warnings.WarningsResultAction) From this object you get the result using action.getResult() Maybe we can work together on making an example for the warnings plug-in so that I can include it on the wiki page? Ulli On 04/11/2012 11:25 AM, Darren Syzling wrote: Regarding the Warnings plugin - is there anyway I can access warning information for the current build from a mail-ext groovy template by using the hudson/jenkins model API? Or would I use the token macro expansion plugin in some way? I was wondering if there was a documented way of gaining access to the WarningsResult and WarningsResultAction so I could access the getSummary method from within the mail
Re: Warnings Plugin and Mail-ext Integration
I also can't seem to get the groovy template to load the WarningsResultAction class. I tried similar things to what you did below. I will see if I can figure out what this is the case. Thanks, slide On Wed, Apr 11, 2012 at 5:57 AM, Darren Syzling dsyzl...@gmail.com wrote: Ulli, I'd be happy to work on something together. I did however try a few variants but the hudson.plugins.warnings.WarningsResultAction class could not be found, I tried variants of this: warningsResultAction = build.getAction(Class.forName(hudson.plugins.warnings.WarningsResultAction)) warningsResultAction = build.getAction(hudson.plugins.warnings.WarningsResultAction.class) and using the class loader: ClassLoader cl = it.class.getClassLoader() def warningsClass = cl.loadClass(hudson.plugins.warnings.WarningsResultAction, true) Is there something different about the groovy parser engine loaded by email-ext which would mean other plugin classes were not available. Unfortunately I then decided to upgrade to Jenkins 1.459 along with: Static analysis utilities 1.38 Warnings 3.28 Static analysis collector 1.24 Email-ext 2.18 This has broken my ability to build and configure the project, when I build: 11-Apr-2012 13:55:43 hudson.model.Executor run SEVERE: Executor threw an exception java.lang.AssertionError: class hudson.plugins.warnings.WarningsPublisher is missing its descriptor at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1076) at hudson.tasks.Publisher.getDescriptor(Publisher.java:123) at hudson.tasks.Recorder.getDescriptor(Recorder.java:51) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:323) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:41) at hudson.model.Descriptor.toMap(Descriptor.java:873) at hudson.util.DescribableList.toMap(DescribableList.java:128) at hudson.model.Project.getPublishers(Project.java:109) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1457) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) and when I try and configure the project I can't access email-ext or warnings configuration information: 11-Apr-2012 13:46:50 hudson.ExpressionFactory2$JexlExpression evaluate WARNING: Caught exception evaluating: i.descriptor. Reason: java.lang.reflect.InvocationTargetExcept ion java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectIm pl.java:314) at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185) at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:5 1) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72) at org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134) On 11 April 2012 10:53, Ullrich Hafner ullrich.haf...@gmail.com wrote: I haven't yet done that but it should be possible to access the objects using this method from your script: WarningsResultAction action = getAction(hudson.plugins.warnings.WarningsResultAction) From this object you get the result using action.getResult() Maybe we can work together on making an example for the warnings plug-in so that I can include it on the wiki page? Ulli On 04/11/2012 11:25 AM, Darren Syzling wrote: Regarding the Warnings plugin - is there anyway I can access warning information for the current build from a mail-ext groovy template by using the hudson/jenkins model API? Or would I use the token macro expansion plugin in some way? I was wondering if there was a documented way of gaining access to the WarningsResult and WarningsResultAction so I could access the getSummary method from within the mail template (or iterate over other information if necessary) in a similar way to accessing JUnit test results? I wondered if there was a standard way for plugins to publish their action results into the
Re: Checkout Failure in Master Slave Configuration
Okay, could you please explain how did you specified credentials for accessing your svn repo? In job? If yes, how? Garami Gábor E-mail: gabor.gar...@hron.me Tel: +36 20 235 9621 MSN: h...@vipmail.hu Skype: hron84 On Wed, Apr 11, 2012 at 8:56 AM, Vinod Kumar kumarvinod...@gmail.comwrote: Hi Gábor Garami, I have installed subversion on Slave machine provided credentials to server file, but problem remains the same... I even tried svn checkout from CMD on that windows machine and that worked flawlessly, but checkout is not happening when I run job from Master jenkins As I ran java webstart on this machine I am pasting here details of jenkins folder created in Windows machine on windows jenkins folder I have following contents- classworlds.jar jenkins-slave.err.log jenkins-slave.exe jenkins-slave.out.log jenkins-slave.wrapper.log jenkins-slave.xml maven-agent.jar maven-interceptor.jar maven2.1-interceptor.jar maven3-agent.jar maven3-interceptor.jar plexus-classworld.jar slave.jar workspace Do I need ti install something else here?? On Apr 11, 1:31 am, Gábor Garami gabor.gar...@hron.me wrote: In Jenkins terminology Slave means separated machine what fetches, builds and test jobs and all artifact being copied back to the Master after build, inc. test logs, real artifacts, stats, etc. Master just triggers and monitor the build process but not do anything on Slave. Except if you specified to install some tools (e.g. Maven, Ant, JDK. etc) from their site. So you need install svn and all tools for successful build to ALL slaves. And you must set required creds to if they're needed. Garami Gábor gabor.gar...@hron.me Skype: hron84 Tel: +36 20 235 9621 Sent from my T-Mobile G2 Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat. 2012.04.10. 16:12, Vinod Kumar kumarvinod...@gmail.com ezt írta: Sir!! I have a query here!! You meant it uses the subversion on slave machine?? If so it shouldn't have started svn command at all (as I have not installed subversion on slave at all) right? so basically my query is... should I install subversion on Slave (Windows) machine also and specify credentials there in server file(I have already tried that and that didn't worked too so I just uninstalled subversion on Slave) or shall I just specify credentials somewhere on slave machine and specify path in config of jenkins on master. I will be really thankful if you can help me here. On Apr 10, 1:38 pm, Gábor Garami gabor.gar...@hron.me wrote: Because you did not specified credentials on SLAVE. Garami Gábor gabor.gar...@hron.me Skype: hron84 Tel: +36 20 235 9621 Sent from my T-Mobile G2 2012.04.10. 10:32, Vinod Kumar kumarvinod...@gmail.com ezt írta: I have specified them in server file of subversion in jenkins. jenkins is even able to checkout on MASTER. This problem comes when i run the job for SLAVE machine and its not able to checkout then only.
Promoted Builds Plugin: Does not automatically promote despite qualifications being met
Hello. I have the following build sequence with Maven jobs: A -- B -- C and I want to promote A when C has finished successfully. I am tracking fingerprints of the same artifact in all 3 jobs, and I verify that they are correct. When C finishes, the Promotion Status looks fine with met qualifications: Promotions my_promotion This promotion has not happened. Met Qualification Downstream builds succeededC #8http://localhost:8080/job/C/8/Unmet Qualification Despite that, the promotion never occurs (you can see the label This promotion has not happened). I found a couple of threads/issues that seem to be pointing to the same problem, but no solution available: http://jenkins.361315.n4.nabble.com/Promotion-is-not-working-td3643188.html https://issues.jenkins-ci.org/browse/JENKINS-10199 I'm using Jenkins 1.455 and Promoted Builds Plugin 2.4 Has anyone else come across this issue? Thanks Cheers.
Re: Getting One Job Invocation Per Git Commit
A late reply, but as this thread appears on Google for trying to solve this problem, I figured I'd post my solution. It isn't great as you can't use the Git plugin, so a new BuildChooser would be superior, but it does result in one build per git commit across all branches. First, modify your job to echo the last built commit to somewhere in the workspace (such as last_built_commit), or preferably throw it in S3 or something more persistent. Now, use the ScriptTrigger plugin and create a script to see if the last_built_commit is still the latest, exiting 0 if not. Here's my example: LAST_BUILT=`cat $WORKSPACE/last_built_commit` # or curl from S3 or wherever NEXT_COMMIT=`cd $WORKSPACE/repo git rev-list --all --remotes --reverse -n 100 | grep -A 1 $LAST_BUILT | tail -n 1` echo $NEXT_COMMIT $WORKSPACE/next_build_commit # If the last built commit is not the newest, exit 0, meaning we need a new build. [[ $LAST_BUILT != $NEXT_COMMIT ]] Finally, handle git clone / pulling yourself in a build step: if [ ! -e repo ]; then git clone repo.git; fi; cd repo git fetch --all git checkout `cat $WORKSPACE/next_build_commit` Ta-da! As far as I can tell, this works well, since a Jenkins restart or job failure will result in another attempt at that commit. Depending on where you write your last_built_commit you can control whether it will retry commits or skip failures. I'd definitely love to see a BuildChooser that handled this, including for a branch specifier of **; that would be quite wonderful. However for now I figured this solution might help others, or maybe someone will point out a better way for me :) - Mike On Friday, July 8, 2011 3:24:59 PM UTC-4, Randall R Schulz wrote: Hi, I'm using Jenkins to drive automated tests triggered by Git commits. Because of the duration of the tests and the frequency of commits (at certain times of the day), often multiple commits occur while the tests from an earlier commit are running. I need to perform a full test run for each commit without this batching or clumping of multiple commits arriving during a test run. How might I achieve that? Randall Schulz
pre-build/tested commits
The section Using Git, Jenkins and pre-build branch merging in the Jenkins Git Plugin page describes how we can make jenkins merge changes on a feature branch to a development branch, run the build and then finally push the changes to the central repository. I'd like to use this, but I have some questions. I'm new to git, so I may have gotten some of the words wrong. 1. This must lead to a large number of branches in the central repository. Is there a way to delete branches which have been fully merged to other branches? 2. How do you handle the situation, where there is more than one branch undergoing development, ie I may have commits that should be merged to a stable branch and other commits that should be pushed to the master/unstable branch. In both cases I would like jenkins to pre-build before pushing upstream. Thanks, Thomas
UNSUBSCRIBE
UNSUBSCRIBE
-- * Anton Zavrin *Senior Systems Administrator Mobile: +1 415 608 1035 Phone: +1 415 284 2770 Web: www.myvest.com
Re: pre-build/tested commits
On 2012-04-11 20:14, Thomas Sondergaard wrote: 2. How do you handle the situation, where there is more than one branch undergoing development, ie I may have commits that should be merged to a stable branch and other commits that should be pushed to the master/unstable branch. In both cases I would like jenkins to pre-build before pushing upstream. After getting the basic setup to work I tried changing Branches to build to release4/*, believing that it would then only pick up branches like release4/bug1004 release4/bug1005 and leave other branches alone, but this doesn't seem to work. Just when I thought, I could answer my own question :-/ Thomas
Re: pre-build/tested commits
Regarding your first point: https://www.google.de/search?q=git+delete+remote+branch Basically you delete the branch locally and push an empty branch to your remote. Regards Mirko On Wed, Apr 11, 2012 at 20:14, Thomas Sondergaard t...@medical-insight.com wrote: The section Using Git, Jenkins and pre-build branch merging in the Jenkins Git Plugin page describes how we can make jenkins merge changes on a feature branch to a development branch, run the build and then finally push the changes to the central repository. I'd like to use this, but I have some questions. I'm new to git, so I may have gotten some of the words wrong. 1. This must lead to a large number of branches in the central repository. Is there a way to delete branches which have been fully merged to other branches? 2. How do you handle the situation, where there is more than one branch undergoing development, ie I may have commits that should be merged to a stable branch and other commits that should be pushed to the master/unstable branch. In both cases I would like jenkins to pre-build before pushing upstream. Thanks, Thomas
Re: pre-build/tested commits
I meant, is there a way to automate it? On 2012-04-11 20:48, Mirko Friedenhagen wrote: Regarding your first point: https://www.google.de/search?q=git+delete+remote+branch Basically you delete the branch locally and push an empty branch to your remote. Regards Mirko On Wed, Apr 11, 2012 at 20:14, Thomas Sondergaard t...@medical-insight.com wrote: The section Using Git, Jenkins and pre-build branch merging in the Jenkins Git Plugin page describes how we can make jenkins merge changes on a feature branch to a development branch, run the build and then finally push the changes to the central repository. I'd like to use this, but I have some questions. I'm new to git, so I may have gotten some of the words wrong. 1. This must lead to a large number of branches in the central repository. Is there a way to delete branches which have been fully merged to other branches? 2. How do you handle the situation, where there is more than one branch undergoing development, ie I may have commits that should be merged to a stable branch and other commits that should be pushed to the master/unstable branch. In both cases I would like jenkins to pre-build before pushing upstream. Thanks, Thomas
Re: How to make a shell script quieter?
And I'd like to add: If the first line of a shell build step starts with hashbang (#!), then Jenkins will simply drop the script as is into a tmp file and execute it. Otherwise Jenkins copies the script into a tmp file and executes it using /bin/sh -xe /tmp/somefilename And /bin/sh, is just the shell used by Jenkins by default. You can change the default under Manage Jenkins - Configure System. -- Sami 2012/4/11 Zoltan Gyarmati zoltan.gyarm...@blumsoft.eu: Hi, it's more a bash question than jenkins, but the point is, Jenkins calls the bash with -x option enabled, which also prints the invoked commands, with a + prefix You can disable it with with the set +x command form your script, try it with this snippet: #!/bin/bash -x echo prints the command as well set +x echo this just prints the echo's output set -x echo also prints the command itself again br, Zoltan On 04/11/2012 11:15 AM, David Aldrich wrote: Hi Some of my Jenkins jobs run bash shell scripts that are stored in Subversion. The scripts are quite complex and may contain ‘for’ loops: For example: for Simulation in $SimulationsList_1 do cd $SIM_PATH_1/$Simulation zip -qr $SIM_PATH_1/$Simulation'_'$BUILD_NUMBER * done The Jenkins console output for such a loop is quite noisy. For example, the ‘for’ statement is printed in every iteration. Is there a way of making a script command silent? For example, I would like to make the line containing ‘for’ silent. Best regards David
Re: Warnings Plugin and Mail-ext Integration
Ok, it looks like the groovy script console sets the classloader for the context to Jenkins.getInstance().getPluginManager().uberClassLoader, which the email-ext plugin does NOT do. I will look at updating this and trying it out and if it works, I'll release a new version of email-ext. slide On Wed, Apr 11, 2012 at 8:51 AM, Slide slide.o@gmail.com wrote: I also can't seem to get the groovy template to load the WarningsResultAction class. I tried similar things to what you did below. I will see if I can figure out what this is the case. Thanks, slide On Wed, Apr 11, 2012 at 5:57 AM, Darren Syzling dsyzl...@gmail.com wrote: Ulli, I'd be happy to work on something together. I did however try a few variants but the hudson.plugins.warnings.WarningsResultAction class could not be found, I tried variants of this: warningsResultAction = build.getAction(Class.forName(hudson.plugins.warnings.WarningsResultAction)) warningsResultAction = build.getAction(hudson.plugins.warnings.WarningsResultAction.class) and using the class loader: ClassLoader cl = it.class.getClassLoader() def warningsClass = cl.loadClass(hudson.plugins.warnings.WarningsResultAction, true) Is there something different about the groovy parser engine loaded by email-ext which would mean other plugin classes were not available. Unfortunately I then decided to upgrade to Jenkins 1.459 along with: Static analysis utilities 1.38 Warnings 3.28 Static analysis collector 1.24 Email-ext 2.18 This has broken my ability to build and configure the project, when I build: 11-Apr-2012 13:55:43 hudson.model.Executor run SEVERE: Executor threw an exception java.lang.AssertionError: class hudson.plugins.warnings.WarningsPublisher is missing its descriptor at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1076) at hudson.tasks.Publisher.getDescriptor(Publisher.java:123) at hudson.tasks.Recorder.getDescriptor(Recorder.java:51) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:323) at hudson.plugins.warnings.WarningsPublisher.getDescriptor(WarningsPublisher.java:41) at hudson.model.Descriptor.toMap(Descriptor.java:873) at hudson.util.DescribableList.toMap(DescribableList.java:128) at hudson.model.Project.getPublishers(Project.java:109) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1457) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) and when I try and configure the project I can't access email-ext or warnings configuration information: 11-Apr-2012 13:46:50 hudson.ExpressionFactory2$JexlExpression evaluate WARNING: Caught exception evaluating: i.descriptor. Reason: java.lang.reflect.InvocationTargetExcept ion java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectIm pl.java:314) at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185) at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:5 1) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72) at org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134) On 11 April 2012 10:53, Ullrich Hafner ullrich.haf...@gmail.com wrote: I haven't yet done that but it should be possible to access the objects using this method from your script: WarningsResultAction action = getAction(hudson.plugins.warnings.WarningsResultAction) From this object you get the result using action.getResult() Maybe we can work together on making an example for the warnings plug-in so that I can include it on the wiki page? Ulli On 04/11/2012 11:25 AM, Darren Syzling wrote: Regarding the Warnings plugin - is there anyway I can access warning information for the current build from a mail-ext groovy template by using the hudson/jenkins model API? Or would I use the token macro expansion plugin in some way? I was
Re: Jenkins with iOS development
On 04/02/2012 12:15 AM, Sami Tikka wrote: I am not an iOS developer myself, so I have not run into this problem. Is there anyone here who can verify that adding the SessionCreate setting to orgi.jenkins-ci.plist fixes the problem? Probably this is not the whole solution. The keys and certificates still need to be copied to the jenkins user keychain, I believe. Is there something we can do to make it easier? I'm not an iOS developer either, but I had the impression that the Jenkins Xcode Plugin was designed to automate some of this keychain stuff. I haven't seen that mentioned here or on Stack Overflow, so perhaps it's worth a look: https://wiki.jenkins-ci.org/display/JENKINS/Xcode+Plugin Regards, Chris
Re: Hudson timer triggers job for multiple times from time to time
On 04/09/2012 08:41 AM, Nan Cui wrote: Hi, I’m using Hudson v1.363 in my project. There is a disturbing issues troubled me for quite a while. Say I setup a job with a periodical schedule, and then save it. It could be very good chance to see that Hudson triggers the job for 2 or 3 times at the scheduled point. Attaching a snapshot. You can see Hudson triggered the job for multiple times in a short period. I’m not sure if you are aware of this issue, or already addressed it in Jenkins. Plz give some advice and help me out. Hudson 1.363 is nearly two years -- a lot has changed in the last 95 versions! I would try testing a newer version of Jenkins. Regards, Chris
Re: Mercurial plugin: Cannot run program hg: error=2, No such file or directory
One of my colleagues helped solve this problem. It appears to me that: 1. Even if you specify the full path to the Mercurial executable in the Mercurial plugin configuration - it is not used. 2. Explicitly setting the environment variable PATH in Global properties also appears to have no affect. Once we examined the actual path used in System Information - Environment Variables, and we created a symbolic link from /usr/bin/hg (a directory in Jenkins runtime path) to the actual installation path, the Mercurial plugin (and my project) worked fine. Chuck On Apr 10, 2012, at 7:03 PM, Chuck Doucette wrote: We *just* switched from Subversion to Mercurial. I didn't get a chance to test Jenkins on Mercurial before making the switch. Now - I am unable to start any builds. They all fail with the error above. FYI - I am running Jenkins 1.459 on a Mac (Snow Leopard 10.6) w/ the Mercurial plugin 1.38. Here's a full snippet from the console output: $ hg clone --rev default --noupdate http://perforce.mok3.com/scm/hg/EveryScape /Users/Shared/Jenkins/Home/jobs/ESSDK/workspace ERROR: Failed to clone http://perforce.mok3.com/scm/hg/EveryScape java.io.IOExceptionhttp://stacktrace.jenkins-ci.org/search?query=java.io.IOException: Cannot run program hg: error=2, No such file or directory When I execute the same command outside of Jenkins, it works fine: macmini_05:~ cruisecontrol$ hg clone --rev default --noupdate http://perforce.mok3.com/scm/hg/EveryScape /Users/Shared/Jenkins/Home/jobs/ESSDK/workspace adding changesets adding manifests In the Jenkins configuration, under Mercurial, I have: Installation directory: /usr/local/bin Executable: /usr/local/bin/hg From the shell, I can find hg: macmini_05:~ cruisecontrol$ which hg /usr/local/bin/hg I happened to notice this resolved issue which may fix my problem: https://issues.jenkins-ci.org/browse/JENKINS-11877 Unfortunately, this issue is not bundled into a plugin release yet. Also - I attempted to fetch the source code for this plugin and build a copy myself; however, the build was unsuccessful (apparently due to some tests failing). How can I resolve my problem in the meantime? Thanks, Chuck
Re: Scheduled build taking presedence in Build Pipeline
No, as it currently stands if you have a scheduled job it will just kick off a new job and won't be part of the pipeline. You'll need to create a feature request for this... (would be useful though, I agree) *Geoff Bullen * Centrum Systems Level 8, 5 Elizabeth Street Sydney *0408 659 395 (m) 02 9235 0516 (t)** * http://www.centrumsystems.com.au On Thu, Mar 29, 2012 at 8:21 PM, Sion themrs...@gmail.com wrote: I have a build pipeline configured to works as follows: Unit tests - Metrics - Deployment. The unit test is a polled job that then triggers my metrics and finally the deployment. So that I dont keep wiping the CI environment I have the deployment occur nightly... this introduced a problem. The scheduling for the deployment takes presedence over whether the upstream was succesful or not. Am I missing a configuration that says ONLY run the scheduled task if the upstream was succesful? Any help is most appreciated.