[Cppcheck] The source file ... doesn't exist on the slave
252 views
Skip to first unread message
Pasi
unread,
Dec 29, 2011, 9:25:34 AM12/29/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
We cannot browse the source files which have gone through Cppcheck in
Jenkins for some reason. The warning Cppcheck plugin gives is this:
[Cppcheck] [WARNING] - The source file 'file:/var/fpwork/user/slave/
workspace/METRICS/trunk/trunk/app/SC/SS/SS_x/CP_y/Source/If.cpp'
doesn't exist on the slave. The ability to display its source code has
been removed.
The obvious reason for the warning is that there is 'trunk' two times
in the directory path shown, but I have no idea where the plugin gets
the other 'trunk' directory. In the cppcheck.xml file there is 'trunk/
app/SC/SS/SS_x/CP_y/Source/If.cpp' in error file.
Cppcheck is run with this kind of command in slave workspace:
cppcheck --enable=all --suppress=memleak:${TOP_BRANCH}/app/SC/SS/SS_x/
CP_y/Source/Raw.cpp:140 --xml ${TOP_BRANCH}/app/SC 2> ${TOP_BRANCH}/
cppcheck.xml
In this case ${TOP_BRANCH}=trunk
'Publish Cppcheck results' section in the job configuration has this:
Cppcheck report XMLs: **/cppcheck.xml
Selected: Use the workspace as root path to look for reports
Any ideas how to solve this? Our Jenkins version is 1.436 and Jenkins
Cppcheck Plug-in is 1.0.2.
Pasi
unread,
Dec 29, 2011, 9:36:45 AM12/29/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message