Skip to content
Permalink
Browse files
[JENKINS-43834] Add deprecated ABORT permission
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 2fb0a89c4d3c8da8d81e1b5fe0e389e767dc1bbd
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowJob.java
@@ -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;
@@ -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<>();

0 comments on commit 2fb0a89

Please sign in to comment.