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.
Files changed (2) hide show
  1. package/index.js +2 -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 response = await request({
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 = (response && response.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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-coverage-sonar",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "SonarQube implementation of the coverage-base class",
5
5
  "main": "index.js",
6
6
  "scripts": {