[JIRA] (JENKINS-37312) BlueOcean "Failed to write numberOfFailingBranches" exception

26 views
Skip to first unread message

jdelStrother@gmail.com (JIRA)

unread,
Aug 10, 2016, 10:55:01 AM8/10/16
to jenkinsc...@googlegroups.com
Jonathan del Strother created an issue
 
Jenkins / Bug JENKINS-37312
BlueOcean "Failed to write numberOfFailingBranches" exception
Issue Type: Bug Bug
Assignee: Unassigned
Components: blueocean-plugin
Created: 2016/Aug/10 2:54 PM
Priority: Critical Critical
Reporter: Jonathan del Strother

I created a multibranch pipeline job. Now, when I visit /blue/pipelines, the page says "No pipelines found". The javascript console shows a failing request to /blue/rest/search/?q=type:pipeline;excludedFromFlattening:jenkins.branch.MultiBranchProject, which returns the following error:

```
java.io.IOException: Failed to write numberOfFailingBranches
at org.kohsuke.stapler.export.Property.safeGetValue(Property.java:151)
at org.kohsuke.stapler.export.Property.writeTo(Property.java:126)
at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:227)
at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:223)
at org.kohsuke.stapler.export.Model.writeTo(Model.java:198)
at org.kohsuke.stapler.ResponseImpl.writeOne(ResponseImpl.java:285)
at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:273)
at hudson.model.Api.doJson(Api.java:211)
at io.jenkins.blueocean.rest.pageable.PagedResponse$Processor$1.generateResponse(PagedResponse.java:55)
at org.kohsuke.stapler.HttpResponseRenderer$Default.handleHttpResponse(HttpResponseRenderer.java:124)
at org.kohsuke.stapler.HttpResponseRenderer$Default.generateResponse(HttpResponseRenderer.java:69)
at org.kohsuke.stapler.Function.renderResponse(Function.java:119)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:102)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:686)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:249)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66)
at org.kohsuke.stapler.export.Property.safeGetValue(Property.java:145)
... 66 more
Caused by: java.lang.NullPointerException
at io.jenkins.blueocean.rest.impl.pipeline.MultiBranchPipelineImpl.countRunStatus(MultiBranchPipelineImpl.java:232)
at io.jenkins.blueocean.rest.impl.pipeline.MultiBranchPipelineImpl.getNumberOfFailingBranches(MultiBranchPipelineImpl.java:99)
... 72 more
```

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

jdelStrother@gmail.com (JIRA)

unread,
Aug 10, 2016, 10:55:01 AM8/10/16
to jenkinsc...@googlegroups.com

tom.bamford@platform16.com (JIRA)

unread,
Aug 11, 2016, 6:27:02 AM8/11/16
to jenkinsc...@googlegroups.com
Tom Bamford commented on Bug JENKINS-37312
 
Re: BlueOcean "Failed to write numberOfFailingBranches" exception

Same issue here;

This comes up on the front page. Nothing appears in jenkins.log, but from Chrome Developer Tools in the browser, I get this...

https://jenkins.xxxxxxxxx.com/blue/pipelines
Failed to load resource: the server responded with a status of 500 (Server Error)
jenkins-js-extension.js:16085 Error: Server Error(…)(anonymous function) @ jenkins-js-extension.js:16085
https://jenkins.xxxxxxxxx.com/blue/rest/search/?q=type:pipeline;excludedFromFlattening:jenkins.branch.MultiBranchProject Failed to load resource: the server responded with a status of 500 (Server Error)
jenkins-js-extension.js:16085 Error: Server Error(…)(anonymous function) @ jenkins-js-extension.js:16085

jdelStrother@gmail.com (JIRA)

unread,
Aug 14, 2016, 8:24:01 AM8/14/16
to jenkinsc...@googlegroups.com

Total stab-in-the-dark, but is it because I have a mixture of pipeline & non-pipeline jobs? (and, for that matter, a mix of multibranch and non-multibranch jobs)

mneale@cloudbees.com (JIRA)

unread,
Aug 28, 2016, 10:56:01 PM8/28/16
to jenkinsc...@googlegroups.com

Hi Jonathan del Strother - unlikely to be that, as others use it mixed. It could be a few things.

There was a fix recently to stop certain plugins from breaking some loading, this may help with the next release. In the mean time, are there any reproduction instructions? what is the version of the plugin you are using? and Jenkins, pipeline etc?

mneale@cloudbees.com (JIRA)

unread,
Aug 28, 2016, 10:57:01 PM8/28/16
to jenkinsc...@googlegroups.com

mneale@cloudbees.com (JIRA)

unread,
Aug 28, 2016, 10:57:01 PM8/28/16
to jenkinsc...@googlegroups.com

mneale@cloudbees.com (JIRA)

unread,
Aug 28, 2016, 10:57:02 PM8/28/16
to jenkinsc...@googlegroups.com

tom.bamford@platform16.com (JIRA)

unread,
Aug 29, 2016, 3:59:01 AM8/29/16
to jenkinsc...@googlegroups.com
Tom Bamford commented on Bug JENKINS-37312
 
Re: BlueOcean "Failed to write numberOfFailingBranches" exception

Michael Neale;

I have the same issue. All versions are from stable and are latest, except the Blue Ocean Alpha (1.0-alpha-8). Happy to provide logs etc if you let me know which.

Versions: Jenkins 2.19
Plugins:

(Alpha) BlueOcean :: UX
1.0-alpha-8			
	
Amazon ECR plugin
1.3			
	
Amazon Web Services SDK
1.10.50			
	
Android Lint Plugin
2.4	
	
AnsiColor
0.4.2			
	
Ant Plugin
1.3			
	
Authentication Tokens API Plugin
1.3			
	
Bitbucket Branch Source Plugin
Allows to use Bitbucket Cloud as a source for multi-branch projects. It also provides the required connectors for Bitbucket Cloud Team Folder (also known as repositories auto-discovering).
1.5			
Uninstall
	
Bitbucket Build Status Notifier Plugin
This plugin is a Bitbucket build status notifier that can publish your build status to Bitbucket Cloud.
1.3.0			
Uninstall
	
Bitbucket Plugin
Integrates with BitBucket
1.1.5			
Uninstall
	
BlueOcean :: Analytics Tools
BlueOcean Analytics Tools plugin
1.0-alpha-8			
Uninstall
	
BlueOcean :: Commons API
This plugin is a part of Blue Ocean UI
1.0-alpha-8			
Uninstall
	
BlueOcean :: Dashboard
Blue Ocean Dashboard
1.0-alpha-8			
Uninstall
	
BlueOcean :: Events
(This version is experimental and may change in backward-incompatible ways) 

A new user experience (experimental status) for Jenkins
1.0-alpha-8			
Uninstall
	
BlueOcean :: Personalization
Blue Ocean Personalization
1.0-alpha-8			
Uninstall
	
BlueOcean :: Pipeline REST API implementation
This plugin is a part of BlueOcean Plugin
1.0-alpha-8			
Uninstall
	
BlueOcean :: REST API implementation
This plugin is a part of Blue Ocean UI
1.0-alpha-8			
Uninstall
	
BlueOcean :: Rest module
This plugin is a part of Blue Ocean UI
1.0-alpha-8			
Uninstall
	
BlueOcean :: Web module
Blue Ocean core
1.0-alpha-8			
Uninstall
	
bouncycastle API Plugin
Provides an stable API to Bouncy Castle related tasks. Plugins using Bouncy Castle should depend on this plugin and not directly on Bouncy Castle
2.16.0			
Uninstall
	
Branch API Plugin
This plugin provides an API for multiple branch based projects.
1.10	
Downgrade to 1.8
Uninstall
	
Build Monitor View
Provides a highly visible view of the status of selected Jenkins jobs. It easily accommodates different computer screen sizes and is ideal as an Extreme Feedback Device to be displayed on a screen on your office wall.
1.10+build.201608030223			
Uninstall
	
build timeout plugin
This plugin allows builds to be automatically terminated after the specified amount of time has elapsed.
1.17.1	
Downgrade to 1.17
Uninstall
	
CloudBees Amazon Web Services Credentials Plugin
Allows storing Amazon IAM credentials within the Jenkins Credentials API.
1.16			
Uninstall
	
CloudBees Docker Build and Publish plugin
This plugin enables building Dockerfile based projects, as well as publishing of the built images/repos to the docker registry.
1.3.1	
Downgrade to 1.3
Uninstall
	
CloudBees Docker Pipeline
Build and use Docker containers from pipelines.
1.7	
Downgrade to 1.6
Uninstall
	
Coverity plugin
This plugin integrates Jenkins with the Coverity Connect and Coverity Static Analysis tools.
1.7.3	
Downgrade to 1.7.1
Uninstall
	
Credentials Binding Plugin
Allows credentials to be bound to environment variables for use from miscellaneous build steps.
1.9	
Downgrade to 1.8
Uninstall
	
Credentials Plugin
This plugin allows you to store credentials in Jenkins.
2.1.4	
Downgrade to 2.0.7
Uninstall
	
Cucumber-JVM reports
This project provides pretty html reports for Cucumber. It works by generating html from the cucumber json report formatter. So can be used anywhere a json report is generated. Current use is in the cucumber jenkins plugin and a maven mojo to generate the same report from mvn command line when running locally.
2.6.3			
Uninstall
	
Docker Commons Plugin
Provides the common shared functionality for various Docker-related plugins.
1.4.0			
Uninstall
	
Durable Task Plugin
Library offering an extension point for processes which can run outside of Jenkins yet be monitored.
1.12	
Downgrade to 1.11
Uninstall
	
Email Extension Plugin
This plugin is a replacement for Jenkins's email publisher
2.47	
Downgrade to 2.45
Uninstall
	
External Monitor Job Type Plugin
Adds the ability to monitor the result of externally executed jobs.
1.6	
Downgrade to 1.5
Uninstall
	
Favorite
This plugin allows users to favorite a job.
1.16			
Uninstall
	
Folders Plugin
This plugin allows users to create "folders" to organize jobs. Users can define custom taxonomies (like by project type, organization type etc). Folders are nestable and you can define views within folders. Maintained by CloudBees, Inc.
5.12	
Downgrade to 5.11
Uninstall
	
Git client plugin
(This version is experimental and may change in backward-incompatible ways) 

Shared library plugin for other Git related Jenkins plugins.
2.0.0-beta2			
Uninstall
	
Git plugin
This plugin integrates Git with Jenkins.
2.5.3			
Uninstall
	
GIT server Plugin
Allows Jenkins to act as a Git server.
1.7	
Downgrade to 1.6
Uninstall
	
GitHub API Plugin
This plugin provides GitHub API for other plugins.
1.77	
Downgrade to 1.76
Uninstall
	
GitHub Branch Source Plugin
Multibranch projects and organization folders from GitHub. Maintained by CloudBees, Inc.
1.9	
Downgrade to 1.8.1
Uninstall
	
GitHub Organization Folder Plugin
Scan entire GitHub organization for buildable branches and pull requests, in repositories. See Pipeline as Code solution page for more details.
1.4	
Downgrade to 1.3
Uninstall
	
GitHub plugin
This plugin integrates GitHub to Jenkins.
1.21.1	
Downgrade to 1.20.0
Uninstall
	
Gradle Plugin
This plugin allows Jenkins to invoke Gradle build scripts directly.
1.25	
Downgrade to 1.24
Uninstall
	
HTML Publisher plugin
This plugin publishes HTML reports.
1.11			
Uninstall
	
Icon Shim Plugin
This plugin allows other Jenkins plugins to take advantage of the <l:icon> tag.
2.0.3			
Uninstall
	
Jackson 2 API Plugin
This plugin exposes the Jackson 2 JSON APIs to other Jenkins plugins.
2.7.3			
Uninstall
	
JaCoCo plugin
This plugin allows you to capture code coverage report from JaCoCo. Jenkins will generate the trend report of coverage. This plugin is fork of the [Emma Plugin]. Big part of the code structure comes from it, however, it is completely refactored. It also includes functionality similar to the [Emma Coverage Column] which allows to include a column in Dashboards which displays the latest overall coverage numbers and links to the coverage report.
2.0.1			
Uninstall
	
Javadoc Plugin
This plugin adds Javadoc support to Jenkins.
1.4	
Downgrade to 1.3
Uninstall
	
JavaScript GUI Lib: ACE Editor bundle plugin
JavaScript GUI Lib: ACE Editor bundle plugin.
1.1			
Uninstall
	
JavaScript GUI Lib: Handlebars bundle plugin
JavaScript GUI Lib: Handlebars bundle plugin.
1.1.1			
Uninstall
	
JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin
JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin.
1.2.1			
Uninstall
	
JavaScript GUI Lib: Moment.js bundle plugin
JavaScript GUI Lib: Moment.js bundle plugin.
1.1.1			
Uninstall
	
Job Import Plugin
The Job Import Plugin lets you import jobs from another Jenkins instance.
1.3.1			
Uninstall
	
JUnit Plugin
Allows JUnit-format test results to be published.
1.18	
Downgrade to 1.15
Uninstall
	
LDAP Plugin
Adds LDAP authentication to Jenkins
1.12			
Uninstall
	
Mailer Plugin
This plugin allows you to configure email notifications for build results. This is a break-out of the original core based email component.
1.17			
Uninstall
	
MapDB API Plugin
This plugin provides a shared dependency on the MapDB library so that other plugins can co-operate when using this library.
1.0.9.0			
Uninstall
	
Matrix Authorization Strategy Plugin
Offers matrix-based security authorization strategies (global and per-project).
1.4			
Uninstall
	
Matrix Project Plugin
Multi-configuration (matrix) project type.
1.7.1	
Downgrade to 1.7
Uninstall
	
Maven Integration plugin
Jenkins plugin for building Maven 2/3 jobs via a special project type.
2.13			
Uninstall
	
Mercurial plugin
This plugin integrates Mercurial SCM with Hudson. It includes repository browsing support for hg serve/hgweb, Google Code, Bitbucket, FishEye, KilnHG and RhodeCode. Features include guaranteed clean builds, named branch support, module lists, Mercurial tool installation, and automatic caching.
1.56	
Downgrade to 1.55
Uninstall
	
Metrics Plugin
This plugin exposes the Metrics API to Jenkins plugins.
3.1.2.9	
Downgrade to 3.1.2.8
Uninstall
	
Multiple SCMs plugin
This plugin enables the selection of multiple source code management systems for a build. For example, it enables checking out the source code from one SCM while checking out legacy or third-party code from another.
0.6			
Uninstall
	
OWASP Markup Formatter Plugin
Uses the OWASP Java HTML Sanitizer to allow safe-seeming HTML markup to be entered in project descriptions and the like.
1.5	
Downgrade to 1.3
Uninstall
	
PAM Authentication plugin
Adds Unix Pluggable Authentication Module (PAM) support to Jenkins.
1.3	
Downgrade to 1.2
Uninstall
	
Pipeline Utility Steps
Utility steps for pipeline jobs.
1.1.6			
Uninstall
	
Pipeline: API
Plugin that defines Pipeline API.
2.2	
Downgrade to 2.1
Uninstall
	
Pipeline: Basic Steps
Commonly used steps for Pipelines.
2.1	
Downgrade to 2.0
Uninstall
	
Pipeline: Build Step
Adds the Pipeline step build to trigger builds of other jobs.
2.2	
Downgrade to 2.1
Uninstall
	
Pipeline: Groovy
Pipeline execution engine based on continuation passing style transformation of Groovy scripts.
2.13	
Downgrade to 2.12
Uninstall
	
Pipeline: Input Step
Adds the Pipeline step input to wait for human input or approval.
2.1	
Downgrade to 2.0
Uninstall
	
Pipeline: Job
Defines a new job type for pipelines and provides their generic user interface.
2.6	
Downgrade to 2.5
Uninstall
	
Pipeline: Multibranch
Enhances Pipeline plugin to handle branches better by automatically grouping builds from different branches.
2.8	
Downgrade to 2.4
Uninstall
	
Pipeline: Nodes and Processes
Pipeline steps locking agents and workspaces, and running external processes that may survive a Jenkins restart or slave reconnection.
2.4	
Downgrade to 2.3
Uninstall
	
Pipeline: REST API Plugin
Provides a REST API to access pipeline and pipeline run data.
1.7			
Uninstall
	
Pipeline: SCM Step
Adds a Pipeline step to check out or update working sources from various SCMs (version control).
2.2	
Downgrade to 2.1
Uninstall
	
Pipeline: Shared Groovy Libraries
Global shared library for Pipeline scripts.
2.2	
Downgrade to 2.1
Uninstall
	
Pipeline: Stage Step
Adds the Pipeline step stage to delineate portions of a build.
2.1			
Uninstall
	
Pipeline: Stage View Plugin
Pipeline Stage View Plugin.
1.7			
Uninstall
	
Pipeline: Step API
API for asynchronous build step primitive.
2.3	
Downgrade to 2.2
Uninstall
	
Pipeline: Supporting APIs
Common utility implementations to build Pipeline Plugin
2.2	
Downgrade to 2.1
Uninstall
	
Plain Credentials Plugin
Allows use of plain strings and files as credentials.
1.2			
Uninstall
	
SCM API Plugin
This plugin provides a new enhanced API for interacting with SCM systems.
1.2			
Uninstall
	
Script Security Plugin
Allows Jenkins administrators to control what in-process scripts can be run by less-privileged users.
1.22	
Downgrade to 1.21
Uninstall
	
Server Sent Events (SSE) Gateway Plugin
Server Sent Events (SSE) Gateway.
1.8	
Downgrade to 1.7
Uninstall
	
SSH Credentials Plugin
This plugin allows you to store SSH credentials in Jenkins.
1.12			
Uninstall
	
SSH Slaves plugin
This plugin allows you to manage slaves running on \*nix machines over SSH.
1.11			
Uninstall
	
Static Analysis Utilities
This plug-in provides utilities for the static code analysis plug-ins.
1.79			
Uninstall
	
Structs Plugin
Library plugin for DSL plugins that need names for Jenkins objects.
1.4	
Downgrade to 1.3
Uninstall
	
Subversion Plug-in
This plugin adds the Subversion support (via SVNKit) to Jenkins.
2.6	
Downgrade to 2.5.7
Uninstall
	
Timestamper
Adds timestamps to the Console Output.
1.8.4	
Downgrade to 1.8.2
Uninstall
	
Token Macro Plugin
This plug-in adds reusable macro expansion capability for other plug-ins to use.
1.12.1			
Uninstall
	
Variant Plugin
This user-invisible library plugin allows other multi-modal plugins to behave differently depending on where they run.
1.0			
Uninstall
	
Windows Slaves Plugin
Allows you to connect to Windows machines and start slave agents on them.
1.2	
Downgrade to 1.1
Uninstall
	
Workspace Cleanup Plugin
This plugin deletes the project workspace after a build is finished.
0.30	
Downgrade to 0.29
Uninstall

mneale@cloudbees.com (JIRA)

unread,
Aug 29, 2016, 4:26:01 AM8/29/16
to jenkinsc...@googlegroups.com

What is your job config like - is it git, github, bitbucket, some other SCM?

mneale@cloudbees.com (JIRA)

unread,
Aug 29, 2016, 4:35:02 AM8/29/16
to jenkinsc...@googlegroups.com

mneale@cloudbees.com (JIRA)

unread,
Aug 29, 2016, 5:13:02 AM8/29/16
to jenkinsc...@googlegroups.com
Michael Neale edited a comment on Bug JENKINS-37312
 
Re: BlueOcean "Failed to write numberOfFailingBranches" exception
[~rocketeer125] What is your job config like - is it git, github, bitbucket, some other SCM?

mneale@cloudbees.com (JIRA)

unread,
Aug 29, 2016, 5:13:02 AM8/29/16
to jenkinsc...@googlegroups.com
Michael Neale edited a comment on Bug JENKINS-37312
[~rocketeer125]  What is your job config like - is it git, github, bitbucket, some other SCM? (anything you can share is appreciated).

tom.bamford@platform16.com (JIRA)

unread,
Aug 29, 2016, 5:35:01 AM8/29/16
to jenkinsc...@googlegroups.com

tom.bamford@platform16.com (JIRA)

unread,
Aug 29, 2016, 5:46:03 AM8/29/16
to jenkinsc...@googlegroups.com

A thought...
We make use of the https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+Branch+Source+Plugin, which provides a 'Bitbucket Team' job type. This scans the repository for Jenkinsfile, automatically creates jobs under every branch, and registers webhooks too. Is it possible that this plugin type is causing the error?

The API call for this is: https://jenkins.DOMAIN.com/job/TEAM/job/REPO/job/BRANCH/config.xml
(Obfuscated API response)

<flow-definition plugin="workflow-job@2.5">
<actions/>
<keepDependencies>false</keepDependencies>
<properties>
<org.jenkinsci.plugins.workflow.multibranch.BranchJobProperty plugin="workflow-multibranch@2.8">
<branch plugin="branc...@1.10">
<sourceId>wefgergerthegehgewreg</sourceId>
<head class="com.cloudbees.jenkins.plugins.bitbucket.SCMHeadWithOwnerAndRepo" plugin="cloudbees-bitbucket-branch-source@1.5">
<name>BRANCHNAME</name>
<repoOwner>TEAMNAME</repoOwner>
<repoName>REPONAME</repoName>
</head>
<scm class="hudson.plugins.git.GitSCM" plugin="g...@2.5.3">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<name>origin</name>
<refspec>+refs/heads/BRANCHNAME</refspec>
<url>
https://bitbucket.org/TEAMNAME/REPONAME.git
</url>
<credentialsId>fewfvergwegregewf</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches class="singleton-list">
<hudson.plugins.git.BranchSpec>
<name>BRANCHNAME</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<submoduleCfg class="empty-list"/>
<extensions>
<hudson.plugins.git.extensions.impl.BuildChooserSetting>
<buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
</hudson.plugins.git.extensions.impl.BuildChooserSetting>
</extensions>
</scm>
<properties class="java.util.concurrent.CopyOnWriteArrayList"/>
</branch>
</org.jenkinsci.plugins.workflow.multibranch.BranchJobProperty>
<jenkins.model.BuildDiscarderProperty>
<strategy class="hudson.tasks.LogRotator">
<daysToKeep>-1</daysToKeep>
<numToKeep>10</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</strategy>
</jenkins.model.BuildDiscarderProperty>
</properties>
<definition class="org.jenkinsci.plugins.workflow.multibranch.SCMBinder" plugin="workflow-multibranch@2.8"/>
<triggers/>
</flow-definition>

tom.bamford@platform16.com (JIRA)

unread,
Aug 29, 2016, 5:49:04 AM8/29/16
to jenkinsc...@googlegroups.com
Tom Bamford edited a comment on Bug JENKINS-37312
A thought...
We make use of the [https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+Branch+Source+Plugin], which provides a 'Bitbucket Team' job type. This scans the repository for Jenkinsfile, automatically creates jobs under every branch, and registers webhooks too. Is it possible that this plugin type is causing the error?

The API call for this is: https://jenkins.
DOMAIN DOMAINNAME .com/job/ TEAM TEAMNAME /job/ REPO REPONAME /job/ BRANCH BRANCHNAME /config.xml
(Obfuscated API response)

{code}
{code}

jdelStrother@gmail.com (JIRA)

unread,
Aug 29, 2016, 6:08:01 AM8/29/16
to jenkinsc...@googlegroups.com

We're using github and the multibranch pipeline. I'm currently using the 1.8beta, but I think I was probably on ~ 1.6beta when it first occurred.

tom.bamford@platform16.com (JIRA)

unread,
Aug 29, 2016, 6:10:05 AM8/29/16
to jenkinsc...@googlegroups.com

Michael Neale

I've added the JSON API hierarchy below ...

*https://jenkins.DOMAINNAME.com/api/json*

...
  "jobs" : [
    {
      "_class" : "jenkins.branch.OrganizationFolder",
      "name" : "TEAMNAME",
      "url" : "https://jenkins.DOMAINNAME.com/job/PIA/"
    }
...

*https://jenkins.DOMAINNAME.com/api/json*

{
  "_class" : "jenkins.branch.OrganizationFolder",
  "actions" : [
    {
      
    },
    {
      
    },
    {
      "_class" : "com.cloudbees.plugins.credentials.ViewCredentialsAction"
    }
  ],
  "description" : "",
  "displayName" : "TEAMNAME",
  "displayNameOrNull" : null,
  "name" : "TEAMNAME",
  "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/",
  "healthReport" : [
    {
      "description" : "Worst health: TEAMNAME » REPONAME: Worst health: TEAMNAME » REPONAME » BRANCHNAME: Build stability: 2 out of the last 5 builds failed.",
      "iconClassName" : "icon-health-40to59",
      "iconUrl" : "health-40to59.png",
      "score" : 60
    }
  ],
  "jobs" : [
    {
      "_class" : "org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject",
      "name" : "REPONAME",
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/"
    }
  ],
  "primaryView" : {
    "_class" : "hudson.model.AllView",
    "name" : "All",
    "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/"
  },
  "views" : [
    {
      "_class" : "hudson.model.AllView",
      "name" : "All",
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/"
    }
  ]
}

*https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/api/json*

{
  "_class" : "org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject",
  "actions" : [
    {
      
    },
    {
      
    },
    {
      "_class" : "com.cloudbees.plugins.credentials.ViewCredentialsAction"
    }
  ],
  "description" : null,
  "displayName" : "REPONAME",
  "displayNameOrNull" : null,
  "name" : "REPONAME",
  "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/",
  "healthReport" : [
    {
      "description" : "Worst health: TEAMNAME » REPONAME » BRANCHNAME1: Build stability: 2 out of the last 5 builds failed.",
      "iconClassName" : "icon-health-40to59",
      "iconUrl" : "health-40to59.png",
      "score" : 60
    }
  ],
  "jobs" : [
    {
      "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowJob",
      "name" : "BRANCHNAME2",
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME2/",
      "color" : "blue"
    },
    {
      "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowJob",
      "name" : "BRANCHNAME1",
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME1/",
      "color" : "blue"
    }
  ],
  "views" : [
    {
      "_class" : "hudson.model.AllView",
      "name" : "All",
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/"
    }
  ],
  "primaryView" : {
    "_class" : "hudson.model.AllView",
    "name" : "All",
    "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/"
  }
}

*https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/api/json*

{
  "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowJob",
  "actions" : [
    {
      
    },
    {
      
    },
    {
      
    },
    {
      
    },
    {
      
    },
    {
      
    },
    {
      "_class" : "com.cloudbees.plugins.credentials.ViewCredentialsAction"
    }
  ],
  "description" : null,
  "displayName" : "BRANCHNAME",
  "displayNameOrNull" : null,
  "name" : "BRANCHNAME",
  "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/",
  "buildable" : true,
  "builds" : [
    {
      "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
      "number" : 8,
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/8/"
    },
    {
      "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
      "number" : 7,
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/7/"
    },
    {
      "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
      "number" : 6,
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/6/"
    },
    {
      "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
      "number" : 5,
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/5/"
    },
    {
      "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
      "number" : 4,
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/4/"
    },
    {
      "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
      "number" : 3,
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/3/"
    },
    {
      "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
      "number" : 2,
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/2/"
    },
    {
      "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
      "number" : 1,
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/1/"
    }
  ],
  "color" : "blue",
  "firstBuild" : {
    "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
    "number" : 1,
    "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/1/"
  },
  "healthReport" : [
    {
      "description" : "Build stability: 2 out of the last 5 builds failed.",
      "iconClassName" : "icon-health-40to59",
      "iconUrl" : "health-40to59.png",
      "score" : 60
    },
    {
      "description" : "Test Result: 0 tests failing out of a total of 3,881 tests.",
      "iconClassName" : "icon-health-80plus",
      "iconUrl" : "health-80plus.png",
      "score" : 100
    }
  ],
  "inQueue" : false,
  "keepDependencies" : false,
  "lastBuild" : {
    "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
    "number" : 8,
    "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/8/"
  },
  "lastCompletedBuild" : {
    "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
    "number" : 8,
    "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/8/"
  },
  "lastFailedBuild" : {
    "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
    "number" : 5,
    "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/5/"
  },
  "lastStableBuild" : {
    "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
    "number" : 8,
    "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/8/"
  },
  "lastSuccessfulBuild" : {
    "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
    "number" : 8,
    "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/8/"
  },
  "lastUnstableBuild" : null,
  "lastUnsuccessfulBuild" : {
    "_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
    "number" : 5,
    "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/5/"
  },
  "nextBuildNumber" : 9,
  "property" : [
    {
      "_class" : "org.jenkinsci.plugins.workflow.multibranch.BranchJobProperty",
      "branch" : {
        
      }
    },
    {
      "_class" : "jenkins.model.BuildDiscarderProperty"
    }
  ],
  "queueItem" : null,
  "concurrentBuild" : true
}

tom.bamford@platform16.com (JIRA)

unread,
Aug 29, 2016, 6:12:04 AM8/29/16
to jenkinsc...@googlegroups.com
Tom Bamford edited a comment on Bug JENKINS-37312
[~michaelneale]


I've added the JSON API hierarchy below ...

*https://jenkins.DOMAINNAME.com/api/json*
{code}

...
  "jobs" : [
    {
      "_class" : "jenkins.branch.OrganizationFolder",
      "name" : "TEAMNAME",
      "url" : "https://jenkins.DOMAINNAME.com/job/ PIA TEAMNAME /"
    }
...
{code}

*https://jenkins.DOMAINNAME.com/api/json*
{code}
{code}

tom.bamford@platform16.com (JIRA)

unread,
Aug 29, 2016, 6:14:04 AM8/29/16
to jenkinsc...@googlegroups.com
Tom Bamford edited a comment on Bug JENKINS-37312
[~michaelneale]

I've added the JSON API hierarchy below ...

*https://jenkins.DOMAINNAME.com/api/json*
{code}
...
  "jobs" : [
    {
      "_class" : "jenkins.branch.OrganizationFolder",
      "name" : "TEAMNAME",
      "url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/"
    }
...
{code}

*https://jenkins.DOMAINNAME.com/
job/TEAMNAME/ api/json*

vivek.pandey@gmail.com (JIRA)

unread,
Aug 29, 2016, 3:04:05 PM8/29/16
to jenkinsc...@googlegroups.com

Hi Jonathan del Strother,

I could not reproduce it locally, but the null check should have been there that is a clear bug as job.getLastRun() could return null. I have put a fix and opened this PR, https://github.com/jenkinsci/blueocean-plugin/pull/445.

vivek.pandey@gmail.com (JIRA)

unread,
Aug 29, 2016, 3:05:04 PM8/29/16
to jenkinsc...@googlegroups.com

vivek.pandey@gmail.com (JIRA)

unread,
Aug 29, 2016, 3:05:05 PM8/29/16
to jenkinsc...@googlegroups.com
Vivek Pandey started work on Bug JENKINS-37312
 
Change By: Vivek Pandey
Status: Open In Progress

mneale@cloudbees.com (JIRA)

unread,
Aug 29, 2016, 7:37:01 PM8/29/16
to jenkinsc...@googlegroups.com

vivek.pandey@gmail.com (JIRA)

unread,
Aug 29, 2016, 11:24:01 PM8/29/16
to jenkinsc...@googlegroups.com
 

Fix merged.

Change By: Vivek Pandey
Status: In Review Resolved
Resolution: Fixed

mneale@cloudbees.com (JIRA)

unread,
Aug 30, 2016, 1:17:02 AM8/30/16
to jenkinsc...@googlegroups.com
Michael Neale commented on Bug JENKINS-37312
 
Re: BlueOcean "Failed to write numberOfFailingBranches" exception

Unfortunately this didn't make the latest alpha, but there should be another one along soon that has it in.

jbriden@cloudbees.com (JIRA)

unread,
Jul 6, 2018, 5:05:32 PM7/6/18
to jenkinsc...@googlegroups.com
Jenn Briden closed an issue as Fixed
 
Change By: Jenn Briden
Status: Resolved Closed
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)
Reply all
Reply to author
Forward
0 new messages