-
Notifications
You must be signed in to change notification settings - Fork 830
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from justinharringa/patch-1
Added ItemDiscover, ItemCancel, and ScmTag permissions to the Permissions enum
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
13 changes: 8 additions & 5 deletions
13
job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/Permissions.groovy
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
package javaposse.jobdsl.dsl.helpers | ||
|
||
enum Permissions { | ||
ItemConfigure('hudson.model.Item.Configure'), | ||
ItemWorkspace('hudson.model.Item.Workspace'), | ||
ItemDelete('hudson.model.Item.Delete'), | ||
ItemBuild('hudson.model.Item.Build'), | ||
ItemConfigure('hudson.model.Item.Configure'), | ||
ItemRead('hudson.model.Item.Read'), | ||
ItemDiscover('hudson.model.Item.Discover'), | ||
ItemBuild('hudson.model.Item.Build'), | ||
ItemWorkspace('hudson.model.Item.Workspace'), | ||
ItemCancel('hudson.model.Item.Cancel'), | ||
ItemRelease('hudson.model.Item.Release'), | ||
ItemExtendedRead('hudson.model.Item.ExtendedRead'), | ||
RunDelete('hudson.model.Run.Delete'), | ||
RunUpdate('hudson.model.Run.Update') | ||
RunUpdate('hudson.model.Run.Update'), | ||
ScmTag('hudson.scm.SCM.Tag') | ||
|
||
final String longForm | ||
Permissions(String longForm) { | ||
this.longForm = longForm | ||
} | ||
} | ||
} |