Skip to content

Commit

Permalink
[JENKINS-43834] Add deprecated ABORT permission
Browse files Browse the repository at this point in the history
Going forward (with core 2.86 or 2.87 and later), CANCEL will be used
in HistoryWidget, but this bandaids things for Pipelines on earlier
core versions.
  • Loading branch information
abayer committed Oct 20, 2017
1 parent d88e5d2 commit 2fb0a89
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 2fb0a89

Please sign in to comment.