new version of jenkins webhook for stash giving error with stash 2.9

Error: Jenkins response: <!DOCTYPE html><html><head> <title>Jenkins [Jenkins]</title><link rel="stylesheet" type="text/css" href="/static/fe7a8d5e/css/style.css" /><link rel="stylesheet" type="text/css" href="/static/fe7a8d5e/css/color.css" /><link rel="shortcut icon" type="image/vnd.microsoft.icon" href="/static/fe7a8d5e/favicon.ico" /><script>var isRunAsTest=false; var rootURL=""; var resURL="/static/fe7a8d5e";</script><script src="/static/fe7a8d5e/scripts/prototype.js" type="text/javascript"></script><script src="/static/fe7a8d5e/scripts/behavior.js" type="text/javascript"></script><script src='/adjuncts/fe7a8d5e/org/kohsuke/stapler/bind.js' type='text/javascript'></script><script src="/static/fe7a8d5e/scripts/yui/yahoo/yahoo-min.js"></script><script src="/static/fe7a8d5e/scripts/yui/dom/dom-min.js"></script><script src="/static/fe7a8d5e/scripts/yui/event/event-min.js"></script><script src="/static/fe7a8d5e/scripts/yui/animation/animation-min.js"></script><script src="/static/fe7a8d5e/scripts/yui/dragdrop/dragdrop-min.js"></script><script src="/static/fe7a8d5e/scripts/yui/container/container-min.js"></script><script src="/static/fe7a8d5e/scripts/yui/connection/connection-min.js"></script><script src="/static/fe7a8d5e/scripts/yui/datasource/datasource-min.js"></script><script src="/static/fe7a8d5e/scripts/yui/autocomplete/autocomplete-min.js"></script><script src="/static/fe7a8d5e/scripts/yui/menu/menu-min.js"></script><script src="/static/fe7a8d5e/scripts/yui/element/element-min.js"></script><script src="/static/fe7a8d5e/scripts/yui/button/button-min.js"></script><script src="/static/fe7a8d5e/scripts/yui/storage/storage-min.js"></script><script src="/static/fe7a8d5e/scripts/hudson-behavior.js" type="text/javascript"></script><script src="/static/fe7a8d5e/scripts/sortable.js" type="text/javascript"></script><script>crumb.init("", "");</script><link rel="stylesheet" type="text/css" href="/static/fe7a8d5e/scripts/yui/container/assets/container.css" /><link rel="stylesheet" type="text/css" href="/static/fe7a8d5e/scripts/yui/assets/skins/sam/skin.css" /><link rel="stylesheet" type="text/css" href="/static/fe7a8d5e/scripts/yui/container/assets/skins/sam/container.css" /><link rel="stylesheet" type="text/css" href="/static/fe7a8d5e/scripts/yui/button/assets/skins/sam/button.css" /><link rel="stylesheet" type="text/css" href="/static/fe7a8d5e/scripts/yui/menu/assets/skins/sam/menu.css" /><link title="Jenkins" rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" /><meta name="ROBOTS" content="INDEX,NOFOLLOW" /><script src="/adjuncts/fe7a8d5e/org/kohsuke/stapler/jquery/jquery.full.js" type="text/javascript"></script><script>var Q=jQuery.noConflict()</script><script src="/static/fe7a8d5e/scripts/yui/cookie/cookie-min.js"></script></head><body class="yui-skin-sam"><a href="#skip2content" class="skiplink">Skip to content</a><table id="header" cellpadding="0" cellspacing="0" width="100%" border="0"><tr><td id="top-panel" colspan="2"><table cellpadding="0" cellspacing="0" width="100%" border="0"><tr><td style="font-weight:bold; font-size: 2em;"><a href="/"><img height="34" alt="title" width="139" src="/static/fe7a8d5e/images/title.png" /></a></td><td style="vertical-align: middle; text-align: right; padding-right: 1em;"><form style="position:relative;" name="search" action="/search/" class="no-json" method="get"><div id="search-box-minWidth"></div><div id="search-box-sizer"></div><div id="searchform"><input id="search-box" placeholder="search" name="q" class="has-default-text" /> <a href="http://wiki.jenkins-ci.org/display/JENKINS/Search+Box"><img height="16" alt="help for search" width="16" src="/static/fe7a8d5e/images/16x16/help.png" /></a><div id="search-box-completion"></div><script>createSearchBox("/search/");</script></div></form></td><td id="login-field"><span> <a style="color:inherit" href="/login?from=%2Fgit%2FnotifyCommit"><b>log in</b></a></span></td></tr></table></td></tr><tr id="top-nav"><td id="left-top-nav" colspan="2"><link rel='stylesheet' href='/adjuncts/fe7a8d5e/lib/layout/breadcrumbs.css' type='text/css' /><script src='/adjuncts/fe7a8d5e/lib/layout/breadcrumbs.js' type='text/javascript'></script><div class="top-sticker noedge"><div class="top-sticker-inner"><div id="right-top-nav"></div><ul id="breadcrumbs"><li class="item"><a class="model-link inside" href="/">Jenkins</a></li><li class="children" href="/"></li></ul><div id="breadcrumb-menu-target"></div></div></div></td></tr></table><table id="main-table" height="70%" style="background-image: url(/static/fe7a8d5e/images/jenkins.png); background-repeat: no-repeat; background-position: bottom left;" width="100%" border="0"><tr><td id="side-panel" width="20%"><div id="navigation" style="min-height: 323px; height: auto !important; height: 323px;"><div class="task"> <a href="http://jenkins-ci.org/"><img height="24" style="margin: 2px;" alt="" width="24" src="/static/fe7a8d5e/images/24x24/next.png" /></a> <a href="http://jenkins-ci.org/">Jenkins project</a></div><div class="task"> <a href="http://issues.jenkins-ci.org/"><img height="24" style="margin: 2px;" alt="" width="24" src="/static/fe7a8d5e/images/24x24/gear2.png" /></a> <a href="http://issues.jenkins-ci.org/">Bug tracker</a></div><div class="task"> <a href="http://jenkins-ci.org/content/mailing-lists"><img height="24" style="margin: 2px;" alt="" width="24" src="/static/fe7a8d5e/images/24x24/search.png" /></a> <a href="http://jenkins-ci.org/content/mailing-lists">Mailing Lists</a></div><div class="task"> <a href="https://twitter.com/jenkinsci"><img height="24" style="margin: 2px;" alt="" width="24" src="/static/fe7a8d5e/images/24x24/user.png" /></a> <a href="https://twitter.com/jenkinsci">Twitter: @jenkinsci</a></div></div></td><td id="main-panel" width="80%" height="100%"><a name="skip2content"></a><h1 style="text-align: center"><img height="179" width="154" src="/static/fe7a8d5e/images/rage.png" /><span style="font-size:50px"> Oops!</span></h1><p>A problem occurred while processing the request. Please check <a href="https://issues.jenkins-ci.org/">our bug tracker</a> to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. <a href="http://jenkins-ci.org/content/mailing-lists">The users list</a> might be also useful in understanding what has happened.</p><h2>Stack trace</h2><pre style="margin:2em; clear:both">javax.servlet.ServletException: java.lang.NullPointerException at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:735) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:381) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:685) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:587) at org.kohsuke.stapler.Stapler.service(Stapler.java:218) 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:96) at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:208) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:181) at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86) at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) 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 jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117) 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:135) 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:174) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64) 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:67) 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:46) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at winstone.RequestDispatcher.forward(RequestDispatcher.java:331) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NullPointerException at hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener.onNotifyCommit(GitStatus.java:271) at hudson.plugins.git.GitStatus.doNotifyCommit(GitStatus.java:85) at sun.reflect.GeneratedMethodAccessor904.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95) 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:685) ... 62 more </pre></td></tr></table><table width="100%"><tr><td id="footer"><span style="padding-right:2em; color:gray"> Page generated: Mar 7, 2014 8:21:41 AM</span><span style="padding-right:2em"><a href="api/">REST API</a></span><a href="http://jenkins-ci.org/">Jenkins ver. 1.530</a></td></tr></table><div id="l10n-dialog" class="dialog"></div><div id="l10n-footer" style="display:none; float:left"><a href="#" onclick="return showTranslationDialog();"><img src="/static/fe7a8d5e/plugin/translation/flags.png" /> Help us localize this page </a></div><script>var footer = document.getElementById('l10n-footer'); var f = document.getElementById('footer'); f.insertBefore(footer,f.firstChild); footer.style.display="block"; var translation={}; translation.bundles = "I4ksaTFcpMSZ7fHKRXiq2fGCYAG6Qs7Qb72mSYrploOe1h9fUVgN//NG48xeFwiET74wY9hJ4WJrKkCa7iHCQBZvR/wfnG4FrQOfilu6MMInL7Y9JXJSm1+xDjinPQdLjrdeP5phAp1ENJXjcF78i9FaU1A3iJWbbmkYOc2B0AjAgt1s8bHYTBYPHaqFeHJzEFtW/JXxmQLKE3LMpi99mhSyX//IdbULvjYC6KdkTHS4JeC1bITz57E8iKhn0dAj7j9JrSu1hhyWZfLjDFQE0TxnQ7RBzlMP8M9XmcXIEx0K3uWBkxevCDa+BOOqg8k9NPKP/IKEmHgg8ZttPgblqp2tTMzcu4TnAooUztvGT3f3jXjqSkK02vlKQWo9UPXla+5dkJHQAyNLIi9b8EtCKDklSAxluMAhmQOUVNyGvfgjUXXVgPS+hjJl+8q8oGX6T3LhQGZMJFaQDIaPlggg76YNYktdD4IyrW53fZ5qKck="; translation.detectedLocale = ""; function showTranslationDialog() { if(!translation.launchDialog) loadScript("/static/fe7a8d5e/plugin/translation/dialog.js"); else translation.launchDialog(); return false; }</script></body></html>

2 answers

this is with the latest version 2.3.0 of the Jenkins webhook plugin. and ssh protocol.

when i changed to the https one (both on the stash and the Jenkins side ) then it works. so i am not sure what is the issue.

Discussion will continue on the GitHub issue at https://github.com/Nerdwin15/stash-jenkins-postreceive-webhook/issues/53, as it belongs there more.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,770 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you