Skip to content

Commit 9f29a8f

Browse files
-Dsonar.projectBaseDir="+p.Config.Workspace
using sonar-project.properties now will also use the param workspace as default to /harness
1 parent e57c664 commit 9f29a8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugin.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,10 @@ func (p Plugin) Exec() error {
514514
args = append(args, "-Dsonar.projectKey="+p.Config.Key)
515515
}
516516

517+
if len(p.Config.Workspace) >= 1 {
518+
args = append(args, "-Dsonar.projectBaseDir="+p.Config.Workspace)
519+
}
520+
517521
} else {
518522
// Error checking the file
519523
return fmt.Errorf("error checking configuration file: %v", err)

0 commit comments

Comments
 (0)