hudson.model.Hudson.getUpdateCenter()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(170)

本文整理了Java中hudson.model.Hudson.getUpdateCenter()方法的一些代码示例,展示了Hudson.getUpdateCenter()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hudson.getUpdateCenter()方法的具体详情如下:
包路径:hudson.model.Hudson
类名称:Hudson
方法名:getUpdateCenter

Hudson.getUpdateCenter介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * Initializes the update center.
 *
 * This has to wait until after all plugins load, to let custom UpdateCenterConfiguration take effect first.
 */
@Initializer(after=PLUGINS_STARTED)
public static void init(Hudson h) throws IOException {
  h.getUpdateCenter().load();
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * URL to download.
 */
public String getUrl() {
  return Hudson.getInstance().getUpdateCenter().getDefaultBaseUrl()+"updates/"+url;
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * Initializes the update center.
 *
 * This has to wait until after all plugins load, to let custom
 * UpdateCenterConfiguration take effect first.
 */
@Initializer(after = PLUGINS_STARTED)
public static void init(Hudson h) throws IOException {
  h.getUpdateCenter().load();
}
/**

代码示例来源:origin: hudson/hudson-2.x

/**
 * Initializes the update center.
 *
 * This has to wait until after all plugins load, to let custom UpdateCenterConfiguration take effect first.
 */
@Initializer(after=PLUGINS_STARTED)
public static void init(Hudson h) throws IOException {
  h.getUpdateCenter().load();
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * Initializes the update center.
 *
 * This has to wait until after all plugins load, to let custom UpdateCenterConfiguration take effect first.
 */
@Initializer(after=PLUGINS_STARTED)
public static void init(Hudson h) throws IOException {
  h.getUpdateCenter().load();
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * URL to download.
 */
public String getUrl() {
  return Hudson.getInstance().getUpdateCenter().getDefaultBaseUrl()+"updates/"+url;
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * URL to download.
 */
public String getUrl() {
  return Hudson.getInstance().getUpdateCenter().getDefaultBaseUrl() + url;
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * returns the {@link UpdateSite.Plugin} object, or null.
 */
public UpdateSite.Plugin getInfo() {
  UpdateCenter uc = Hudson.getInstance().getUpdateCenter();
  return uc.getPlugin(getShortName());
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

public Data getData() {
    UpdateSite cs = Hudson.getInstance().getUpdateCenter().getCoreSource();
    if (cs != null) {
      return cs.getData();
    }
    return null;
  }
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * returns the {@link UpdateSite.Plugin} object, or null.
 */
public UpdateSite.Plugin getInfo() {
  UpdateCenter uc = Hudson.getInstance().getUpdateCenter();
  return uc.getPlugin(getShortName());
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

public Data getData() {
    UpdateSite cs = Hudson.getInstance().getUpdateCenter().getCoreSource();
    if (cs!=null)   return cs.getData();
    return null;
  }
}

代码示例来源:origin: hudson/hudson-2.x

/**
 * returns the {@link UpdateSite.Plugin} object, or null.
 */
public UpdateSite.Plugin getInfo() {
  UpdateCenter uc = Hudson.getInstance().getUpdateCenter();
  return uc.getPlugin(getShortName());
}

代码示例来源:origin: hudson/hudson-2.x

public Data getData() {
    UpdateSite cs = Hudson.getInstance().getUpdateCenter().getCoreSource();
    if (cs!=null)   return cs.getData();
    return null;
  }
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

public Data getData() {
    UpdateSite cs = Hudson.getInstance().getUpdateCenter().getCoreSource();
    if (cs!=null)   return cs.getData();
    return null;
  }
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * returns the {@link UpdateSite.Plugin} object, or null.
 */
public UpdateSite.Plugin getInfo() {
  UpdateCenter uc = Hudson.getInstance().getUpdateCenter();
  return uc.getPlugin(getShortName());
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-test-harness

/**
 * Configures the update center setting for the test.
 * By default, we load updates from local proxy to avoid network traffic as much as possible.
 */
protected void configureUpdateCenter() throws Exception {
  final String updateCenterUrl = "http://localhost:"+ JavaNetReverseProxy.getInstance().localPort+"/update-center.json";
  // don't waste bandwidth talking to the update center
  DownloadService.neverUpdate = true;
  UpdateSite.neverUpdate = true;
  PersistedList<UpdateSite> sites = hudson.getUpdateCenter().getSites();
  sites.clear();
  sites.add(new UpdateSite("default", updateCenterUrl));
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * Schedules the downgrade of this plugin.
 */
public Future<UpdateCenterJob> deployBackup() {
  Hudson.getInstance().checkPermission(Hudson.ADMINISTER);
  UpdateCenter uc = Hudson.getInstance().getUpdateCenter();
  return uc.addJob(uc.new PluginDowngradeJob(this, UpdateSite.this, Hudson.getAuthentication()));
}
/**

代码示例来源:origin: hudson/hudson-2.x

/**
 * Schedules the downgrade of this plugin.
 */
public Future<UpdateCenterJob> deployBackup() {
  Hudson.getInstance().checkPermission(Hudson.ADMINISTER);
  UpdateCenter uc = Hudson.getInstance().getUpdateCenter();
  return uc.addJob(uc.new PluginDowngradeJob(this, UpdateSite.this, Hudson.getAuthentication()));
}
/**

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * Schedules the downgrade of this plugin.
 */
public Future<UpdateCenterJob> deployBackup() {
  Hudson.getInstance().checkPermission(Hudson.ADMINISTER);
  UpdateCenter uc = Hudson.getInstance().getUpdateCenter();
  return uc.addJob(uc.new PluginDowngradeJob(this, UpdateSite.this, HudsonSecurityManager.getAuthentication()));
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * Schedules the downgrade of this plugin.
 */
public Future<UpdateCenterJob> deployBackup() {
  Hudson.getInstance().checkPermission(Hudson.ADMINISTER);
  UpdateCenter uc = Hudson.getInstance().getUpdateCenter();
  return uc.addJob(uc.new PluginDowngradeJob(this, UpdateSite.this, Hudson.getAuthentication()));
}
/**

相关文章

Hudson类方法