Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: dafbe164-8fec-45cc-85f3-253d8806485b **14:31:04** groovy.lang.MissingPropertyException: No such field found: field java.lang.Class Administer **14:31:04** at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.unclassifiedField(SandboxInterceptor.java:402) **14:31:04** at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:386) **14:31:04** at org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:375)
what are all permission sets or path. -jenkins.model.Jenkins.BUILD is not working. Where I can find all the permissions. In my jenkins config its like below-
jenkins.model.Jenkins.BUILD is not a known permission.
The build permission is hudson.model.Item.BUILD
You could grant for an admin all permissions, and then look at the config.xml to get a list of all permissions. From the class name you can usually guess what the permission stands for.
I tried with paths fetched from config.xml (as shared above)and got error.
13:19:55 Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 954252db-ad0e-496a-b668-094b10ff0496 13:19:55 groovy.lang.MissingPropertyException: No such field found: field java.lang.Class Build 13:19:55 at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.unclassifiedField(SandboxInterceptor.java:402)
Note: Looking to set permission according to user role (not all admin) some would have read-only, some with build etc.
Grant the permissions via the UI, then look at the config.xml and you get a list of all permissions that you have in your Jenkins (plugins can also contribute permissions).
Not sure what you mean with path, permissions are class names the way you want to use them.
By path I mean permission class only. added user via UI and the below generated in config.xml. Tried using those permission class but getting error as shared above.