norisknofun
norisknofun

Reputation: 879

jenkins : cppcheck not running

I am trying to launch cppcheck for my tepp project under jenkins environment, system is win7-x64:

The ouput is :

[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 I execute this command line under a cmd windows, it works fine : bunch of logs, big xml file generated ...

Did I missed something ?

Upvotes: 0

Views: 1723

Answers (2)

norisknofun
norisknofun

Reputation: 879

Cppcheck must be invoked via "windows batch" and not "execute shell script".

I thought "shell script" is interpreted via some bash/sh jenkins under linux and via cmd under windows. It isn't !

Upvotes: 1

Jerome Vacher
Jerome Vacher

Reputation: 324

Did you already tested the cppcheck plugin ? https://wiki.jenkins-ci.org/display/JENKINS/Cppcheck+Plugin

My team created it .. and the cppcheck team is using it now.

Upvotes: 0

Related Questions