[JENKINS-24076] Add a configuration option for stable build comparison

Add a configuration option for Cppcheck to compare results against a stable build rather than the last
build.