CI: also discard prebuilt C++ bindings for the NETCONF stack

When a job gets queued which updates, say, `cla-sysrepo` or
`netconf-cli`, a test build of the ARM image is queued. If the list of
changes that are being tested also includes an update to
`CzechLight/dependencies`, the intention was that "everything" which was
built via that update was also getting refreshed. That was, however,
actually not the case and the C++ bindings were reused from the prebuilt
artifact.

The same applies to other C++ libraries which are pinned via git
submodules. That looks like a reasonable compromise between the CI
latency and correctness.

Fixes: 8cd6156 Migrate to libyang2
Change-Id: I1a2ff559c600803d7ca464ced9f9dad20122d905
diff --git a/ci/build.sh b/ci/build.sh
index 02c1549..7f9a4ee 100755
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -76,10 +76,18 @@
     done
 
     # Is there a change ahead which updates CzechLight/dependencies? If so, make sure these will get rebuilt
-    # This is (still) not foolproof. It will use a wrong version of dependencies if that change has been already merged, but br2-external doesn't have it merged
+    # This is (still) not foolproof. It will use a wrong version of dependencies if that change has been already merged, but br2-external doesn't have it merged.
+    # Also, we cannot remove all "leaf projects" like cla-sysrepo, netconf-cli, velia, etc. When there's a backwards-incompatible change,
+    # this project will get one rebuild per each "leaf" update. The resulting image might not even boot (think the update to libyang v2),
+    # but it's still important to check whether a given project at least *builds* for ARM. After a "big" update there should always be a
+    # standalone sync to `br2-external` as the very last step anyway.
     HAS_CHANGE_OF_DEPENDENCIES=$(jq < ~/zuul-env.json -r '[.items[]? | select(.project.name == "CzechLight/dependencies")][-1]?.project.src_dir + ""')
     if [[ ! -z "${HAS_CHANGE_OF_DEPENDENCIES}" ]]; then
-        for PROJECT in libyang sysrepo libnetconf2 netopeer2; do
+        for PROJECT in \
+		libyang sysrepo libnetconf2 netopeer2 \
+		libyang-cpp sysrepo-cpp \
+		docopt-cpp replxx cppcodec sdbus-cpp \
+		; do
             rm -rf build/{,host-}${PROJECT}-custom/ per-package/{,host-}${PROJECT}/
         done
     fi