[JIRA] (JENKINS-40297) Clover-Plugin NullPointer exception on build when config is missing

2017-01-16 Thread atya...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ahmed Musallam commented on  JENKINS-40297  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Clover-Plugin NullPointer exception on build when  config is missing   
 

  
 
 
 
 

 
 Marek Parfianowicz looking at the code, it seems the issue was fixed! and that NPE will not happen. Thanks! As to testing it on a Jenkins instance, please give me some time to run a local instance and install 4.7.1. Or if anyone wants to confirm, use the follwing config:target/site/clover  clover.xml  70 80 80 
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40297) Clover-Plugin NullPointer exception on build when config is missing

2016-12-15 Thread atya...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ahmed Musallam commented on  JENKINS-40297  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Clover-Plugin NullPointer exception on build when  config is missing   
 

  
 
 
 
 

 
 Bjørn Reppen NullPointerExceptions are meant to be fixed, not caught. The underlying problem is that failingTarget is NULL and that is what needs to be fixed with a default value OR at least a Log message to remind the user to add those failingTarget values.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-34439) Clover plugin still has problems with pipeline builds

2016-12-07 Thread atya...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ahmed Musallam commented on  JENKINS-34439  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Clover plugin still has problems with pipeline builds   
 

  
 
 
 
 

 
 Andor Dávid Mark Cariddi We have seen this issue on my project. It turned out to be a missing config for the clover publisher. Specifically the  config. This config's absence is not handled properly in the plugin, I opened an issue here: https://issues.jenkins-ci.org/browse/JENKINS-40297  target/site/clover clover.xml  70 80 80   40 40 40   0 0 0
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40297) Clover-Plugin NullPointer exception on build when config is missing

2016-12-07 Thread atya...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ahmed Musallam created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40297  
 
 
  Clover-Plugin NullPointer exception on build when  config is missing   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Stephen Connolly  
 
 
Components: 
 clover-plugin  
 
 
Created: 
 2016/Dec/08 12:04 AM  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Ahmed Musallam  
 

  
 
 
 
 

 
 Clover Plugin throws an NPE on build.. find exception below. Our team was able to debug the issue and it was due to missing  config for clover publisher because the failing target fields were not populated. As you can see, this error is not helpful and it would be nice if the log can be more helpful in case of a missing config. The NPE happens exactly at this line in CloverPublisher.java Set failingMetrics = failingTarget.getFailingMetrics(result); where failingTarget is null.. well because it was not provided in the xml config. Disclaimer: I have not developed jenkins plugins before so I appologize if I'm not using correct terms.  ERROR: Build step failed with exception java.lang.NullPointerException at hudson.plugins.clover.CloverPublisher.processCloverXml(CloverPublisher.java:250) at hudson.plugins.clover.CloverPublisher.performImpl(CloverPublisher.java:202) at hudson.plugins.clover.CloverPublisher.perform(CloverPublisher.java:160) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:764) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:724) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1047) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1769) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374)