diff --git a/Chocolatey.Cake.Recipe/Content/sonarqube.cake b/Chocolatey.Cake.Recipe/Content/sonarqube.cake index a3b00d7..c4419d1 100644 --- a/Chocolatey.Cake.Recipe/Content/sonarqube.cake +++ b/Chocolatey.Cake.Recipe/Content/sonarqube.cake @@ -33,8 +33,8 @@ BuildParameters.Tasks.InitializeSonarQubeTask = Task("Initialize-SonarQube") if (BuildParameters.ShouldRunDependencyCheck) { SonarQubeSettings.ArgumentCustomization = args => args - .Append(string.Format("/d:sonar.dependencyCheck.jsonReportPath={0}", BuildParameters.Paths.Files.DependencyCheckJsonReportFilePath)) - .Append(string.Format("/d:sonar.dependencyCheck.htmlReportPath={0}", BuildParameters.Paths.Files.DependencyCheckHtmlReportFilePath)); + .Append(string.Format("/d:sonar.dependencyCheck.jsonReportPath={0}", MakeAbsolute(BuildParameters.Paths.Files.DependencyCheckJsonReportFilePath))) + .Append(string.Format("/d:sonar.dependencyCheck.htmlReportPath={0}", MakeAbsolute(BuildParameters.Paths.Files.DependencyCheckHtmlReportFilePath))); }; SonarBegin(SonarQubeSettings);