Do not automatically rewrite custom metrics during scan

Hello everyone,

as far as I undestand during sonar-scanner execution it always rewrites custom metrics values even if they are absent (e.g. not provided to sensor) during the scan process - they will be nulled in that case. Is there any possibility to leave old custom values intact (not to move in scan history) if they are not explicetly overwrited?

SonarQube version is 6.7.

No, that’s not possible. You will have to cache the previous value somewhere, or use a WS call to query the previous value from the SonarQube itself.