I'm trying to get the number of warnings in my CodeWarrior build using the 
Warnings Next Generation Plugin. Whatever I try I always get 0 warnings, 
when the project has many.

The setup is Jenkins on a Linux host with a Windows slave node that has 
CodeWarrior 10.2 installed to build a Freescale Kinetis K20 project. The 
code is checked out fine and builds using a Windows batch command:

"C:\Freescale\CW MCU v10.2\eclipse\ecd.exe" -build -project 
C:\jenkins\workspace\PointColourWindowsBuild\project -config 
BuildConfiguration -cleanBuild

Examples of warnings in the code are:

C:/Freescale/CW MCU 
v10.2/MCU/ARM_Tools/Command_Line_Tools/mwccarm|Compiler|Warning
(C:\jenkins\workspace\PointColourWindowsBuild\point-colour\Sources\port\mqx\MqxUsbDescriptor.c|432|19|1|16759|1)
=     uint_32 handle,   
>variable / argument 'handle' is not used in function
C:/Freescale/CW MCU 
v10.2/MCU/ARM_Tools/Command_Line_Tools/mwccarm|Compiler|Warning
(C:\jenkins\workspace\PointColourWindowsBuild\point-colour\Sources\port\mqx\MqxI2C.c|163|15|1|4665|1)
=  return(error);  
>implicit arithmetic conversion from 'unsigned long' to 'unsigned char'
C:/Freescale/CW MCU 
v10.2/MCU/ARM_Tools/Command_Line_Tools/mwccarm|Compiler|Warning
(C:\jenkins\workspace\PointColourWindowsBuild\point-colour\Sources\port\mqx\MqxI2C.c|176|15|1|4977|1)
=  return(error);  
>implicit arithmetic conversion from 'unsigned long' to 'unsigned char'


The output from the Warnings Next Generation Plugin in the log is as 
follows:

[CodeWarrior] Sleeping for 5 seconds due to JENKINS-32191...
[CodeWarrior] Parsing console log (workspace: 
'C:\jenkins\workspace\PointColourWindowsBuild')
[CodeWarrior] Attaching ResultAction with ID 'metrowerks' to run 
'PointColourWindowsBuild #15'.
[CodeWarrior] Using reference build 'PointColourWindowsBuild #14' to compute 
new, fixed, and outstanding issues
[CodeWarrior] Issues delta (vs. reference build): outstanding: 0, new: 0, 
fixed: 0
[CodeWarrior] No quality gates have been set - skipping
[CodeWarrior] Health report is disabled - skipping
[CodeWarrior] Created analysis result for 0 issues (found 0 new issues, fixed 0 
issues)


My Warnings Next Generation Plugin configuration is:
Tool: MetroWerks CodeWarrior
Report File Pattern: <blank>
Report Encoding: <blank>
Custom ID: <blank>
Custom Name: CodeWarrior

What am I doing wrong such that the warnings are not found? Is it possible 
to run just the Warnings Next Generation Plugin without needing to build 
the project every time? 

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6ed091c5-294d-4390-b3b6-d563915991df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to