ci: Fix code coverage reports in Jenkins-CI

Change-Id: I5ea2d5699b7c2eac78a49df904f25da7fef3c14b
Refs: #3116
diff --git a/.jenkins.d/10-build.sh b/.jenkins.d/10-build.sh
index bb64511..d99f3c3 100755
--- a/.jenkins.d/10-build.sh
+++ b/.jenkins.d/10-build.sh
@@ -27,7 +27,7 @@
 sudo ./waf -j1 --color=yes distclean
 
 # Configure/build shared library in debug mode with examples without precompiled headers
-if has code-coverage $JOB_NAME; then
+if [[ "$JOB_NAME" == *"code-coverage" ]]; then
     COVERAGE="--with-coverage"
 fi
 ./waf -j1 --color=yes configure --debug --enable-shared --disable-static --with-tests --without-pch --with-examples $COVERAGE