本文整理了Java中jenkins.model.Jenkins.getItemMap()
方法的一些代码示例,展示了Jenkins.getItemMap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jenkins.getItemMap()
方法的具体详情如下:
包路径:jenkins.model.Jenkins
类名称:Jenkins
方法名:getItemMap
[英]Returns the read-only view of all the TopLevelItems keyed by their names.
This method is efficient, as it doesn't involve any copying.
[中]返回由名称键入的所有TopLevelItems的只读视图。
这种方法是有效的,因为它不涉及任何复制。
代码示例来源:origin: jenkinsci/jenkins
public boolean isActivated() {
Jenkins h = Jenkins.getInstance();
return h.getViews().size()==1 && h.getItemMap().size()> THRESHOLD;
}
代码示例来源:origin: jenkinsci/jenkins
for (TopLevelItem topLevelItem : Jenkins.getInstance().getItemMap().values()) {
if (topLevelItem instanceof AbstractProject) {
final AbstractProject project = (AbstractProject) topLevelItem;
代码示例来源:origin: jenkinsci/jenkins
if (!j.getItemMap().isEmpty() || !j.getNodes().isEmpty()) {
return InstallState.UPGRADE;
代码示例来源:origin: jenkinsci/throttle-concurrent-builds-plugin
private static Item getItem(ItemGroup group, String name) {
if (group instanceof Jenkins) {
return ((Jenkins) group).getItemMap().get(name);
} else {
return group.getItem(name);
}
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
public boolean isActivated() {
Jenkins h = Jenkins.getInstance();
return h.getViews().size()==1 && h.getItemMap().size()> THRESHOLD;
}
代码示例来源:origin: hudson.plugins/project-inheritance
Map<String,TopLevelItem> items = j.getItemMap();
int nextItems = items.size();
if (nextItems == currItems) {
代码示例来源:origin: i-m-c/jenkins-inheritance-plugin
Map<String,TopLevelItem> items = j.getItemMap();
int nextItems = items.size();
if (nextItems == currItems) {
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
for (TopLevelItem topLevelItem : Jenkins.getInstance().getItemMap().values()) {
if (topLevelItem instanceof AbstractProject) {
final AbstractProject project = (AbstractProject) topLevelItem;
代码示例来源:origin: i-m-c/jenkins-inheritance-plugin
Jenkins.getInstance().getItemMap();
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
if (!j.getItemMap().isEmpty() || !j.getNodes().isEmpty()) {
return InstallState.UPGRADE;
代码示例来源:origin: hudson.plugins/project-inheritance
Jenkins.getInstance().getItemMap();
内容来源于网络,如有侵权,请联系作者删除!