Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #80 from abayer/jenkins-43834
Browse files Browse the repository at this point in the history
[JENKINS-43834] Add deprecated ABORT permission
  • Loading branch information
svanoort committed Oct 20, 2017
2 parents d88e5d2 + 2fb0a89 commit 94308a9
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -62,6 +62,7 @@
import hudson.scm.SCMRevisionState;
import hudson.search.SearchIndexBuilder;
import hudson.security.ACL;
import hudson.security.Permission;
import hudson.slaves.WorkspaceList;
import hudson.triggers.SCMTrigger;
import hudson.triggers.Trigger;
Expand Down Expand Up @@ -361,6 +362,12 @@ public void setConcurrentBuild(boolean b) throws IOException {
return hasPermission(CANCEL);
}

/**
* @deprecated Just use {@link #CANCEL}.
*/
@Deprecated
public static final Permission ABORT = CANCEL;

@Override public Collection<? extends SubTask> getSubTasks() {
// TODO mostly copied from AbstractProject, except SubTaskContributor is not available:
List<SubTask> subTasks = new ArrayList<>();
Expand Down

0 comments on commit 94308a9

Please sign in to comment.