nullPointerException while getting tests stats

35 views
Skip to first unread message

Joachim Rodrigues

unread,
Aug 13, 2013, 5:49:39 AM8/13/13
to jenkin...@googlegroups.com
I
I'm currently discovering jenkins plugins developpent and in my Plugin class that extends Notifier 
my AbstractBuild<?,?> build object, always  returns null when invoking getAggregatedTestResultAction or AbstractTestResultAction

how can I get tests fail + test succeeded and test skiped ?

thanks

Joachim

Joachim Rodrigues

unread,
Aug 14, 2013, 3:36:32 AM8/14/13
to jenkin...@googlegroups.com
Found the problem.

In fact, when  getAggregatedTestResultAction  and  getTestResultAction are returning null inside a free-style project.
It ok for maven projects

Kayode Adeoye

unread,
Aug 19, 2013, 3:54:01 PM8/19/13
to jenkin...@googlegroups.com
is this a bug in jenkins or expected behavior?

Joachim Rodrigues

unread,
Aug 20, 2013, 5:13:47 PM8/20/13
to jenkin...@googlegroups.com
No i think this is expected behavior because metrics like total tests or skiped tests are only relevant with maven jobs and not free style jobs.



--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/ju6F06cc2ew/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages