本文整理了Java中jenkins.model.Jenkins.getDescriptorByName()
方法的一些代码示例,展示了Jenkins.getDescriptorByName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jenkins.getDescriptorByName()
方法的具体详情如下:
包路径:jenkins.model.Jenkins
类名称:Jenkins
方法名:getDescriptorByName
[英]Alias for #getDescriptor(String).
[中]#getDescriptor(字符串)的别名。
代码示例来源:origin: jenkinsci/jenkins
/**
* Exposes all {@link Descriptor}s by its name to URL.
*
* <p>
* Implementation should always delegate to {@link jenkins.model.Jenkins#getDescriptorByName(String)}.
*
* @param id
* Either {@link Descriptor#getId()} (recommended) or the short name.
*/
default Descriptor getDescriptorByName(String id) {
return Jenkins.getInstance().getDescriptorByName(id);
}
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* Exposes all {@link Descriptor}s by its name to URL.
*
* <p>
* Implementation should always delegate to {@link jenkins.model.Jenkins#getDescriptorByName(String)}.
*
* @param id
* Either {@link Descriptor#getId()} (recommended) or the short name.
*/
default Descriptor getDescriptorByName(String id) {
return Jenkins.getInstance().getDescriptorByName(id);
}
}
代码示例来源:origin: jenkinsci/workflow-cps-plugin
@Override public Descriptor getDescriptorByName(String id) {
return Jenkins.get().getDescriptorByName(id);
}
代码示例来源:origin: jenkinsci/scm-sync-configuration-plugin
@SuppressWarnings("unchecked")
public Descriptor<hudson.scm.SCM> getSCMDescriptor(){
return Jenkins.getInstance().getDescriptorByName(getSCMClassName());
}
内容来源于网络,如有侵权,请联系作者删除!