screwdriver-coverage-sonar 5.1.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -115,13 +115,13 @@ class CoverageSonar extends CoverageBase {
|
|
|
115
115
|
return this.sonarGitAppName;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
const
|
|
118
|
+
const { body } = await request({
|
|
119
119
|
method: 'GET',
|
|
120
120
|
url: `${this.sonarHost}/api/alm_settings/list`,
|
|
121
121
|
username: this.adminToken
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
const almSettings = (
|
|
124
|
+
const almSettings = (body && body.almSettings) || [];
|
|
125
125
|
|
|
126
126
|
if (almSettings.length === 0) {
|
|
127
127
|
logger.error('No ALM settings found in SonarQube; using default Git App name');
|