提交 141a61f0 编写于 作者: K kohsuke

for compatibility reasons we can't keep this method abstract.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7527 71c3de6d-444a-0410-be80-ed276b4c234a
上级 af4adabe
......@@ -2,6 +2,9 @@ package hudson.scm;
import hudson.model.AbstractBuild;
import hudson.model.TaskAction;
import hudson.model.Hudson;
import hudson.model.AbstractProject;
import hudson.security.Permission;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
......@@ -30,6 +33,13 @@ public abstract class AbstractScmTagAction extends TaskAction {
return "tagBuild";
}
/**
* Defaults to {@link SCM#TAG}.
*/
protected Permission getPermission() {
return SCM.TAG;
}
public AbstractBuild getBuild() {
return build;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册