Skip to content

Commit b15b7ee

Browse files
Merge pull request #76 from danieljamesrees/use_template_id_not_name
Use templateId not templateName
2 parents 826e20c + 8b95513 commit b15b7ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jobs/sonarqube/templates/config/ConfigureUsers.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static void addPermission(login, permission, permissionsUrl, template) {
3333
// Currently this seems only to be needed for project permissions.
3434
// The API claims both are optional, but when not included, an error is specified indicating one of the other, not both, is required.
3535
if (template && !template.allWhitespace) {
36-
def templatePair = SonarApiClient.buildSingleValuedKeyPair('templateName', template)
36+
def templatePair = SonarApiClient.buildSingleValuedKeyPair('templateId', template)
3737
queryValues = [loginPair, permissionsPair, templatePair]
3838
}
3939

0 commit comments

Comments
 (0)