This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| strategy = Hudson.instance.authorizationStrategy; | |
| if (strategy instanceof hudson.security.GlobalMatrixAuthorizationStrategy) { | |
| for (user in ["bob", "mike"]) { | |
| for (perm in ["hudson.model.Hudson.Read", | |
| "hudson.model.Item.Read", | |
| "hudson.model.Item.Build", | |
| "hudson.model.Item.Workspace", | |
| "hudson.model.Run.Delete", | |
| "hudson.model.Run.Update", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (plugin in ["ant", | |
| "artifactdeployer", | |
| "build-failure-analyzer", | |
| "build-name-setter", | |
| "build-pipeline-plugin", | |
| "build-timeout", | |
| "claim", | |
| "clone-workspace-scm", | |
| "cobertura", | |
| "collapsing-console-sections", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for(item in Hudson.instance.items) { | |
| item.disable() | |
| } |