jenkins : cppcheck not running -


i trying launch cppcheck tepp project under jenkins environment, system win7-x64:

  • i installed cppcheck.exe under c:\program files (x86)\jenkins\cppcheck
  • jenkins config, shell exec path : c:\windows\system32\cmd.exe
  • as documentation suggested, jenkins launches cppcheck analysis following :
    • i add "execute shell script" task
    • "c:\program files (x86)\jenkins\cppcheck\cppcheck.exe" -j 8 --enable=all --inconclusive --xml --xml-version=2 tepp 2> tepp/tepp-cppcheck.xml

the ouput :

[tepp] $ c:\windows\system32\cmd.exe -xe c:\windows\temp\hudson3799822801570258901.sh microsoft windows [version 6.1.7601] copyright (c) 2009 microsoft corporation. tous droits r‚serv‚s.  c:\program files (x86)\jenkins\workspace\tepp>finished: success 

no xml output file, nothing in logs, quiet failed.

when execute command line under cmd windows, works fine : bunch of logs, big xml file generated ...

did missed ?

cppcheck must invoked via "windows batch" , not "execute shell script".

i thought "shell script" interpreted via bash/sh jenkins under linux , via cmd under windows. isn't !


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -