Skip to content
Snippets Groups Projects
Commit 5cbce3a6 authored by Jens Georg's avatar Jens Georg
Browse files

Revert "Revert previous change a bit"

This reverts commit 4dbd7598.
parent 4dbd7598
No related branches found
No related tags found
No related merge requests found
......@@ -451,7 +451,11 @@ def doPublishBuildTestDeploy(ArrayList<String> builds) {
sh """
pwd
mkdir -p build
cppcheck --inline-suppr --enable=all --xml --xml-version=2 -ibuild -Iinclude -I/usr/include . 2> ./build/cppcheck.xml
if [ -e /scratch/build-${parentJob}/compile_commands.json ]; then
cppcheck --inline-suppr --enable=all --xml --xml-version=2 -ibuild --project=/scratch/build-${parentJob}/compile_commands.json 2> ./build/cppcheck.xml
else
cppcheck --inline-suppr --enable=all --xml --xml-version=2 -ibuild -Iinclude -I/usr/include . 2> ./build/cppcheck.xml
fi
"""
publishCppcheck pattern: 'build/cppcheck.xml'
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment