screwdriver-coverage-sonar 4.1.1 → 4.1.2

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 +7 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -45,14 +45,15 @@ class CoverageSonar extends CoverageBase {
45
45
  'Invalid config for sonar coverage plugin'
46
46
  );
47
47
 
48
- this.sdCoverageAuthUrl = `${config.sdApiUrl}/v4/coverage/token`;
49
- this.adminToken = config.adminToken;
50
- this.sonarHost = config.sonarHost;
51
- this.sonarEnterprise = config.sonarEnterprise;
52
- this.sonarGitAppName = config.sonarGitAppName;
48
+ // use this.config for default values
49
+ this.sdCoverageAuthUrl = `${this.config.sdApiUrl}/v4/coverage/token`;
50
+ this.adminToken = this.config.adminToken;
51
+ this.sonarHost = this.config.sonarHost;
52
+ this.sonarEnterprise = this.config.sonarEnterprise;
53
+ this.sonarGitAppName = this.config.sonarGitAppName;
53
54
 
54
55
  this.uploadCommands = COMMANDS.replace('$SD_SONAR_HOST', this.sonarHost)
55
- .replace('$SD_UI_URL', config.sdUiUrl)
56
+ .replace('$SD_UI_URL', this.config.sdUiUrl)
56
57
  .replace('$SD_SONAR_ENTERPRISE', this.sonarEnterprise)
57
58
  .split('\n');
58
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-coverage-sonar",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "SonarQube implementation of the coverage-base class",
5
5
  "main": "index.js",
6
6
  "scripts": {