c++ - Cppcheck into Jenkins with QT project -




i have server jenkins , qt project. server runs on centos 7. installed "cppcheck" server installed "cppcheck plug-in" plugin jenkins.

the script build project:

cd flashclipboard; /usr/lib64/qt5/bin/qmake flashclipboard.pro; make clean; make; cppcheck --enable=all --suppress=missingincludesystem . --xml --xml-version=2 . 2> ./tmp/cppcheck.xml; 

post-build actions:

enter image description here

but have error:

[cppcheck] starting cppcheck analysis.

[cppcheck] processing 1 files pattern 'tmp/cppcheck.xml'.

[cppcheck] parsing throws exceptions. javax.xml.bind.unmarshalexception - linked exception:

[org.xml.sax.saxparseexception; systemid: file:/var/lib/jenkins/workspace/flash%20clipboard/tmp/cppcheck.xml; linenumber: 1; columnnumber: 1; premature end of file.]

build step 'publish cppcheck results' changed build result failure

build step 'publish cppcheck results' marked build failure

what mistake?

sorry sure path correct?

shouldn't be:

cppcheck report xml:  flashclipboard/tmp/cppcheck.xml 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -