You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-09-16 09:26:22 +02:00
Update sonarExecuteScan.go
This commit is contained in:
committed by
GitHub
parent
e0e89aa4c6
commit
8f3086173b
@@ -367,15 +367,15 @@ func handlePullRequest(config sonarExecuteScanOptions) error {
|
||||
provider := strings.ToLower(config.PullRequestProvider)
|
||||
if provider == "github" {
|
||||
if len(config.Owner) > 0 && len(config.Repository) > 0 {
|
||||
//sonar.addOption("sonar.pullrequest.github.repository=" + config.Owner + "/" + config.Repository)
|
||||
sonar.addOption("sonar.pullrequest.github.repository=" + config.Owner + "/" + config.Repository)
|
||||
}
|
||||
} else {
|
||||
return errors.New("Pull-Request provider '" + provider + "' is not supported!")
|
||||
}
|
||||
//sonar.addOption("sonar.pullrequest.key=" + config.ChangeID)
|
||||
//sonar.addOption("sonar.pullrequest.base=" + config.ChangeTarget)
|
||||
//sonar.addOption("sonar.pullrequest.branch=" + config.ChangeBranch)
|
||||
//sonar.addOption("sonar.pullrequest.provider=" + provider)
|
||||
sonar.addOption("sonar.pullrequest.key=" + config.ChangeID)
|
||||
sonar.addOption("sonar.pullrequest.base=" + config.ChangeTarget)
|
||||
sonar.addOption("sonar.pullrequest.branch=" + config.ChangeBranch)
|
||||
sonar.addOption("sonar.pullrequest.provider=" + provider)
|
||||
}
|
||||
} else if len(config.BranchName) > 0 {
|
||||
sonar.addOption("sonar.branch.name=" + config.BranchName)
|
||||
|
Reference in New Issue
Block a user