SVN post-commit hook fails to trigger build in Jenkins 1.399

190 views
Skip to first unread message

Henk van Voorthuijsen

unread,
Mar 3, 2011, 10:39:17 AM3/3/11
to jenkins...@googlegroups.com
using this script:
#!/bin/sh

REPOSITORY="$1"
REVISION="$2"
HUDSON="http://clipper.factory.portinfolink.com:8080"

#Filter out version commit
svnlook log $REPOSITORY -r $REVISION | grep BS-395
VERSIONING=$?
if [ $VERSIONING -ne 0 ]
then
/usr/bin/wget \
--output-document=- \
--proxy=off \
--header "Content-Type:text/plain;charset=UTF-8" \
--post-data "`svnlook changed --revision $REVISION $REPOSITORY`" \
$HUDSON/subversion/$(svnlook uuid $REPOSITORY)/notifyCommit?rev=$REVISION
fi

Jenkins no longer picks up the SCM change. After rollback to 1.398 everything is back to normal.
Does anyone hae the same problem?

Henk van Voorthuijsen


Ferenc Kovacs

unread,
Mar 3, 2011, 10:44:47 AM3/3/11
to jenkins...@googlegroups.com, Henk van Voorthuijsen
not the answer that you've asked, but this one works for me

#!/bin/sh

REPOS="$1"
REV="$2"
UUID=`svnlook uuid $REPOS`
/usr/bin/wget \
  --quiet \
  --no-check-certificate \
  --timeout=2 \
  --tries=2 \
  --header "Content-Type:text/plain;charset=UTF-8" \
  --post-data "`svnlook changed --revision $REV $REPOS`" \
  --output-document "-" \
https://localhost/jenkins/subversion/${UUID}/notifyCommit?rev=$REV > /dev/null &

Tyrael

Henk van Voorthuijsen

unread,
Mar 4, 2011, 4:09:28 AM3/4/11
to Jenkins Users
Looks quite similar - have you tried it with 1.399 ?

Ferenc Kovacs

unread,
Mar 4, 2011, 4:59:31 AM3/4/11
to jenkins...@googlegroups.com, Henk van Voorthuijsen
On Fri, Mar 4, 2011 at 10:09 AM, Henk van Voorthuijsen <h.van.voo...@portbase.com> wrote:
Looks quite similar - have you tried it with 1.399 ?

yep

Tyrael

Henk van Voorthuijsen

unread,
Mar 4, 2011, 8:27:59 AM3/4/11
to Jenkins Users
That's weird - what system do you run Jenkins on?

On Mar 4, 10:59 am, Ferenc Kovacs <i...@tyrael.hu> wrote:
> On Fri, Mar 4, 2011 at 10:09 AM, Henk van Voorthuijsen <
>

Ferenc Kovacs

unread,
Mar 4, 2011, 9:17:14 AM3/4/11
to jenkins...@googlegroups.com, Henk van Voorthuijsen
debian lenny

Tyrael

Henk van Voorthuijsen

unread,
Mar 9, 2011, 5:32:42 AM3/9/11
to Jenkins Users
Well, the problem persists with 1.400.

After analyzing the log, I found the following stacktrace, only during
the interval that 1.400 was running:

Mar 8, 2011 12:02:22 AM hudson.util.RobustReflectionConverter
doUnmarshal
WARNING: Failed to resolve a type
java.lang.InstantiationError: hudson.scm.SubversionRepositoryBrowser
at
sun.reflect.GeneratedSerializationConstructorAccessor203.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:
76)
at
hudson.util.RobustReflectionConverter.instantiateNewInstance(RobustReflectionConverter.java:
333)
at
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:
179)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:
82)
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:
63)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:
76)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:
60)
at
hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:
290)
at
hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:
233)
at
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:
180)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:
82)
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:
63)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:
76)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:
60)
at
hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:
290)
at
hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:
233)
at
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:
180)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:
82)
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:
63)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:
76)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:
60)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:
137)
at
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:
33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926)
at hudson.util.XStream2.unmarshal(XStream2.java:80)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:856)
at hudson.XmlFile.read(XmlFile.java:126)
at
hudson.plugins.nodenamecolumn.NodeNameColumn.getNodeName(NodeNameColumn.java:
52)
at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.commons.jexl.util.introspection.UberspectImpl
$VelMethodImpl.invoke(UberspectImpl.java:258)
at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:
104)
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:
51)
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)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary
$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:
63)
at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:146)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:
161)
at
org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:
150)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary
$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary
$2.run(CoreTagLibrary.java:105)
at
org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:
119)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:
161)
at
org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:
150)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary
$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary
$1.run(CoreTagLibrary.java:98)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary
$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary
$2.run(CoreTagLibrary.java:105)
at
org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:
119)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:
161)
at
org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:
41)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:
161)
at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:
38)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
at org.apache.commons.jelly.tags.core.CoreTagLibrary
$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:
63)
at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:146)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.CallTagLibScript
$1.run(CallTagLibScript.java:98)
at
org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:
91)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary
$1.run(CoreTagLibrary.java:98)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary
$2.run(CoreTagLibrary.java:105)
at
org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:
119)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.CallTagLibScript
$1.run(CallTagLibScript.java:98)
at
org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:
91)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary
$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary
$1.run(ReallyStaticTagLibrary.java:99)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary
$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary
$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary
$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary
$2.run(CoreTagLibrary.java:105)
at
org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:
119)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.CompressTag.doTag(CompressTag.java:44)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:
63)
at
org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:
63)
at
org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:
53)
at
org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:
72)
at
org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:
114)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:551)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640)
at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:242)
at
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:
53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:562)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640)
at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:242)
at
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:
53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:562)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:478)
at org.kohsuke.stapler.Stapler.service(Stapler.java:160)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:
249)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
at hudson.util.PluginServletFilter
$1.doFilter(PluginServletFilter.java:94)
at
hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:
65)
at hudson.util.PluginServletFilter
$1.doFilter(PluginServletFilter.java:97)
at
hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:
52)
at hudson.util.PluginServletFilter
$1.doFilter(PluginServletFilter.java:97)
at
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:
157)
at
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:
131)
at
net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:
82)
at
org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:
69)
at hudson.util.PluginServletFilter
$1.doFilter(PluginServletFilter.java:97)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:
86)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
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
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:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:
81)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at
winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:
244)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.lang.Thread.run(Thread.java:619)

Swindells, Thomas

unread,
Mar 9, 2011, 5:34:56 AM3/9/11
to jenkins...@googlegroups.com
Is your SVN plugin at the latest version? Are you sure it hasn't been pinned to an old version or anything?


**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postm...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************

Henk van Voorthuijsen

unread,
Mar 9, 2011, 7:12:16 AM3/9/11
to Jenkins Users
That could very well be the case - unfortunately, if I unpin the svn
plugin, Jenkins 1.399+ replaces it with 1.20 :(
> ...
>
> read more »

Henk van Voorthuijsen

unread,
Mar 9, 2011, 7:51:43 AM3/9/11
to Jenkins Users
Jenkins 1.400 with Subversion plugin 1.23 still shows the same
stacktraces...

On Mar 9, 11:34 am, "Swindells, Thomas" <TSwinde...@nds.com> wrote:
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages