concept snapshot in category sonarqube

appears as: snapshots, snapshot
SonarQube in Action

This is an excerpt from Manning's book SonarQube in Action.

Events are significant, at least in part because they flag an analysis snapshot for long-term retention. Every time an analysis is performed, a snapshot of the project state is taken. That could quickly add up to a lot of snapshots, bloating the database, but SonarQube’s rigorous housekeeping routines keep that from happening. Those routines are preconfigured to sane but tunable defaults. For more on that, see chapter 13.

Before we move on, let’s elaborate on three terms we used in the previous paragraph: snapshot, event, and version. Table 15.3 explains them in detail.

Table 15.3. History terms

Term

Description

Comments

Snapshot Every time SonarQube runs a new project analysis, its results are stored in the database, and a new snapshot of the project is created. Snapshots aren’t forever. Recall what we discussed in chapter 14 about the database cleaning mechanism and how you can modify the default settings.
Version The project’s version number is passed as parameter in SonarQube analysis. The latest snapshot of a version is always kept in the database, even if it breaks the database cleaner rules.
Event Events either are noteworthy facts that occurred during project analysis or can be manually added. A snapshot may be associated with more than one event. Snapshots with events are never deleted automatically from the database, although someone with project administration rights can do that manually.