Skip to content

Commit

Permalink
Merge pull request #76 from danieljamesrees/use_template_id_not_name
Browse files Browse the repository at this point in the history
Use templateId not templateName
  • Loading branch information
danieljamesrees authored Oct 17, 2018
2 parents 826e20c + 8b95513 commit b15b7ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/sonarqube/templates/config/ConfigureUsers.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static void addPermission(login, permission, permissionsUrl, template) {
// Currently this seems only to be needed for project permissions.
// The API claims both are optional, but when not included, an error is specified indicating one of the other, not both, is required.
if (template && !template.allWhitespace) {
def templatePair = SonarApiClient.buildSingleValuedKeyPair('templateName', template)
def templatePair = SonarApiClient.buildSingleValuedKeyPair('templateId', template)
queryValues = [loginPair, permissionsPair, templatePair]
}

Expand Down

0 comments on commit b15b7ee

Please sign in to comment.