diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 13ade1c1be73fbea35b249e0ec2f3ac68f73fe25..56610ae91bb367b39822fbd0e40193ef3573bca4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,7 @@ variables:
   SOURCE_FOLDER: "."
   RUN_CPPCHECK: "cppcheck --enable=all --error-exitcode=1 --suppress=unusedFunction --suppress=unreadVariable --suppress=variableScope --inline-suppr ."
   CPPCHECK_OPTIONS: " --enable=all --suppress=missingIncludeSystem --suppress=unusedFunction --suppress=unreadVariable --suppress=variableScope"
+  RUN_CPD: "/home/user/pmd-bin-6.19.0/bin/run.sh cpd --minimum-tokens 300 --language c --exclude ./test/cmocka --files"
 
 run_compile_test:
     stage: compile_test