-
Bug
-
Resolution: Not A Defect
-
Critical
-
None
-
Jenkins 2.414.3, Debian 12, all plugins at current versions, users/groups from AD
While the new syntax works fine in JCasC for creating global permissions, it doesn't work at all in Job-DSL for creating project permissions. The following script creates a job containing only the two empty default permission rows ("Anonymous", "Authenticated Users") instead of the provided permission entries:
freeStyleJob('PermissionTest') { properties { authorizationMatrix { inheritanceStrategy { nonInheriting() } entries { group { name('authenticated') permissions([ 'Overall/Read' ]) } group { name('adgroup') permissions([ 'Overall/Administer' ]) } user { name('aduser') permissions([ 'Overall/Read' ]) } } } } }