diff options
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ScanProperties.java')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ScanProperties.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ScanProperties.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ScanProperties.java index 1da90cf6bf7..36fd9b5d41e 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ScanProperties.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ScanProperties.java @@ -40,6 +40,7 @@ public class ScanProperties { public static final String SONAR_REPORT_EXPORT_PATH = "sonar.report.export.path"; public static final String PRELOAD_FILE_METADATA_KEY = "sonar.preloadFileMetadata"; public static final String FORCE_RELOAD_KEY = "sonar.scm.forceReloadAll"; + public static final String SCM_REVISION = "sonar.scm.revision"; private final Configuration configuration; private final DefaultInputProject project; @@ -78,6 +79,10 @@ public class ScanProperties { } } + public Optional<String> getScmRevision() { + return configuration.get(SCM_REVISION); + } + /** * This should be called in the beginning of the analysis to fail fast */ |