Hi, starting with 6.9.0 i'm getting an error from ViewBuildResults class which
It was working before that version now it's giving following error:
com.atlassian.bamboo.resultsummary.IncorrectResultSummaryTypeException: Result cannot be found by key 'ABP-PLAN-1' with type 'interface com.atlassian.bamboo.resultsummary.BuildResultsSummary'
How to solve this problem? Btw if manually add Job name to buildkey it works. Eg:
<web-item key="netsparker-cloud-plan-report" name="Netsparker Enterprise Plan Report" section="chainResults.subMenu/chainResults" weight="50">
<description key="NetsparkerCloudReport.desc">Provides Netsparker Enterprise scan report.</description>
<label key="Netsparker Enterprise Report"/>
<package name="NetsparkerCloudScanResult" extends="buildView" namespace="/build/result">
<action name="viewNetsparkerCloudReport" class="com.netsparker.tasks.NetsparkerCloudReport" method="default">
<result name="input" type="freemarker">/templates/task/NetsparkerCloudReport.ftl</result>
<result name="success" type="freemarker">/templates/task/NetsparkerCloudReport.ftl</result>
<result name="error" type="freemarker">/templates/task/NetsparkerCloudReport.ftl</result>
Build Date: 27 Sep 2019
com.atlassian.bamboo.resultsummary.IncorrectResultSummaryTypeException: Result cannot be found by key 'ABP-PLAN-1' with type 'interface com.atlassian.bamboo.resultsummary.BuildResultsSummary' at com.atlassian.bamboo.resultsummary.BuildResultsSummaryManagerImpl.getResultsSummary(BuildResultsSummaryManagerImpl.java:185) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryManagerImpl.getResultsSummary(BuildResultsSummaryManagerImpl.java:175) at sun.reflect.GeneratedMethodAccessor1287.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at com.atlassian.bamboo.security.acegi.intercept.aopalliance.AuthorityOverrideMethodSecurityInterceptor.invoke(AuthorityOverrideMethodSecurityInterceptor.java:22) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) ...
Hi @Rohan Chougule before answering, funny thing is while we were testing our plugin BrowserStack were giving same error too. i've checked BrowserStack's github bamboo repo which is too old.
I've searched everywhere and waste so many time to find this so here it comes:
i've changed our NetsparkerCloudReport class which extends
ViewBuildResults to PlanResultsAction and it worked. You can check my commit for details
Thanks for the response @Ali Karaca
Your solution seems like a proper fix by extending the PlanResultsAction instead of the Builds one.
Bamboo seems to have changed the way they retrieve the builds data and haven't documented anywhere. (or probably they have, but I couldn't find it.)
@Rohan Chougule you are welcome! I've wasted few days to find this made me went insane glad to hear that work and saved your time. Bamboo documentation is so outdated and atlassian doesn't care. Like you've said there is no info about it, i couldn't find either. Seems like i've lucky to find an answer. If you solve an issue like this please share the knowledge.
Good luck on bamboo!
Found the solution (Till v6.9):
Just replace the buildKey query param to planKey.
The value is retrieved from the key buildKey and assigned to planKey query param.
To this :
In your atlassian-plugin.xml, replace it to this :
G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events