diff --git a/Jenkinsfile b/Jenkinsfile index 64bdef19..a099a9e6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1241,7 +1241,7 @@ pipeline { steps{ catchError(buildResult: 'SUCCESS', message: 'cppcheck found issues', stageResult: 'UNSTABLE') { sh(label: 'Running cppcheck', - script: 'cppcheck --error-exitcode=1 --project=build/cpp/compile_commands.json -i$WORKSPACE/build/cpp/_deps --suppress=*:build/cpp/_deps/* --enable=all --xml --output-file=logs/cppcheck_debug.xml' + script: 'cppcheck --error-exitcode=1 --project=build/cpp/compile_commands.json -i_deps --enable=all --suppressions-list=cppcheck_suppression_file.txt -rp=$WORKSPACE/build/cpp --xml --output-file=logs/cppcheck_debug.xml' ) } } diff --git a/cppcheck_suppression_file.txt b/cppcheck_suppression_file.txt new file mode 100644 index 00000000..824d5e51 --- /dev/null +++ b/cppcheck_suppression_file.txt @@ -0,0 +1,2 @@ +missingIncludeSystem +*:_deps/* \ No newline at end of file