aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-protocol
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2019-01-16 14:19:36 +0100
committersonartech <sonartech@sonarsource.com>2019-02-11 09:11:46 +0100
commit47ebff25c379b9162943121a49278553967f2dfe (patch)
tree4d5bf3e095021ce397261f97c5d9113c76225bc9 /sonar-scanner-protocol
parent3373e5778af7c9e5b02aa23b07c7c2c8592e5da5 (diff)
downloadsonarqube-47ebff25c379b9162943121a49278553967f2dfe.tar.gz
sonarqube-47ebff25c379b9162943121a49278553967f2dfe.zip
SONAR-11631 replace Component.version by Metadata.projectVersion
in scanner report
Diffstat (limited to 'sonar-scanner-protocol')
-rw-r--r--sonar-scanner-protocol/src/main/protobuf/scanner_report.proto6
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto b/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto
index 92e917a65f1..9c7812eea02 100644
--- a/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto
+++ b/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto
@@ -49,6 +49,8 @@ message Metadata {
string pull_request_key = 14;
map<string, string> modules_project_relative_path_by_key = 15;
+ string projectVersion = 16;
+
message QProfile {
string key = 1;
string name = 2;
@@ -108,7 +110,7 @@ message Component {
string language = 6;
repeated int32 child_ref = 7 [packed = true];
repeated ComponentLink link = 8;
- // Only available on PROJECT and MODULE types
+ // FIXME SONAR-11631 delete this property after deployment on SC of metadata.projectVersion
string version = 9;
// Only available on PROJECT and MODULE types
// TODO rename this property -> moduleKey ?
@@ -121,7 +123,7 @@ message Component {
// Path relative to project base directory
string project_relative_path = 14;
-
+
enum ComponentType {
UNSET = 0;
PROJECT = 1;