-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get maven project version from the Sonar REST API.
- Loading branch information
Showing
12 changed files
with
153 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...lector-webhook/src/test/resources/json/sonar/api-components-show-component-not-found.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"errors": [ | ||
{ | ||
"msg": "Component key 'no.priv.bang.sonar.sonar-collector:parent' not found" | ||
} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
...ebhook/src/test/resources/json/sonar/api-components-show-component-parameter-missing.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"errors": [ | ||
{ | ||
"msg": "Either 'componentId' or 'component' must be provided" | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
...tor-webhook/src/test/resources/json/sonar/api-components-show-version-1.0.0-SNAPSHOT.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"component": { | ||
"organization": "default-organization", | ||
"id": "AV_PTIC-nHoAyOYzcfvA", | ||
"key": "no.priv.bang.sonar.sonar-collector:parent", | ||
"name": "SonarQube data collector parent project", | ||
"qualifier": "TRK", | ||
"analysisDate": "2017-11-19T22:40:36+0100", | ||
"tags": [], | ||
"visibility": "public", | ||
"leakPeriodDate": "2017-11-18T16:52:24+0100", | ||
"version": "1.0.0-SNAPSHOT" | ||
}, | ||
"ancestors": [] | ||
} |
15 changes: 15 additions & 0 deletions
15
sonar-collector-webhook/src/test/resources/json/sonar/api-components-show-version-1.0.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"component": { | ||
"organization": "default-organization", | ||
"id": "AV_PTIC-nHoAyOYzcfvA", | ||
"key": "no.priv.bang.sonar.sonar-collector:parent", | ||
"name": "SonarQube data collector parent project", | ||
"qualifier": "TRK", | ||
"analysisDate": "2017-11-19T22:40:36+0100", | ||
"tags": [], | ||
"visibility": "public", | ||
"leakPeriodDate": "2017-11-18T16:52:24+0100", | ||
"version": "1.0.0" | ||
}, | ||
"ancestors": [] | ||
} |
66 changes: 0 additions & 66 deletions
66
sonar-collector-webhook/src/test/resources/json/sonar/webhook-post-no-maven-version.json
This file was deleted.
Oops, something went wrong.
67 changes: 0 additions & 67 deletions
67
...webhook/src/test/resources/json/sonar/webhook-post-with-maven-version-1.0.0-SNAPSHOT.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.