Skip to content

Commit

Permalink
Merge pull request #36 from AbhyudayaSharma/doc-update
Browse files Browse the repository at this point in the history
Update docs with JCasC human-readable permissions
  • Loading branch information
AbhyudayaSharma authored Oct 2, 2019
2 parents 01d4a49 + e71ee99 commit a832496
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,31 +110,34 @@ jenkins:
- "agent1"
name: "agentRole1"
permissions:
- id: "hudson.model.Computer.Configure"
- id: "hudson.model.Computer.Disconnect"
- id: "Agent/Configure"
- id: "Agent/Disconnect"
sids:
- "user1"
folderRoles:
- folders:
- "root"
name: "viewRoot"
permissions:
- id: "hudson.model.Item.Read"
- id: "Job/Read"
sids:
- "user1"
globalRoles:
- name: "admin"
permissions:
- id: "hudson.model.Hudson.Administer"
- id: "Overall/Administer"
sids:
- "admin"
- name: "read"
permissions:
- id: "hudson.model.Hudson.Read"
- id: "Overall/Read"
sids:
- "user1"
```
The configuration YAML also supports permission IDs which are used internally by Jenkins,
for example, `hudson.model.Hudson.Administer`

**Note**: You need to have [Configuration-as-Code](https://plugins.jenkins.io/configuration-as-code)
plugin ≥ [1.24](https://github.com/jenkinsci/configuration-as-code-plugin/releases/tag/configuration-as-code-1.24)
installed for using Jenkins Configuration-as-Code with this plugin. The CasC
Expand Down

0 comments on commit a832496

Please sign in to comment.