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:
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
Post a Comment