get maven skipped modules via groovy

6 views
Skip to first unread message

Shurik

unread,
Mar 6, 2016, 6:07:30 AM3/6/16
to Jenkins Developers
Hi,

I try to create the groovy template for maven build and I want to add skipped module list to mail.

12:23:39 2016-03-04 12:23:38.369 [INFO] XXXXX SUCCESS [ 21.387 s] 
12:23:39 2016-03-04 12:23:38.369 [INFO] XXXX1 SKIPPED 
12:23:39 2016-03-04 12:23:38.369 [INFO] XXXX2 SKIPPED 
12:23:39 2016-03-04 12:23:38.369 [INFO] XXXX3 SKIPPED 

but when I check the result of module for skipped modules I get the NOT_BUILD status.

How I can know if module skipped?

....
<%
def mbuilds = build.moduleLastBuilds
mbuilds.each() { m -> 
%>
<tr>${m.value.getResult()}</tr>
<% } %>

Thanks,
Shurik

Reply all
Reply to author
Forward
0 new messages