Skip to content
Permalink
Browse files
Merge pull request #80 from abayer/jenkins-43834
[JENKINS-43834] Add deprecated ABORT permission
  • Loading branch information
svanoort committed Oct 20, 2017
2 parents d88e5d2 + 2fb0a89 commit 94308a9ecd09f62cf2e1f075d56b2dbf9165bb46
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 94308a9

Please sign in to comment.