hudson.model.Project.getPublisher()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(104)

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

Project.getPublisher介绍

暂无

代码示例

代码示例来源:origin: jenkinsci/violations-plugin

/**
 * get the configuration for this job.
 *
 * @return the configuration of the job.
 */
public ViolationsConfig getLiveConfig() {
  AbstractProject<?, ?> abstractProject = build.getProject();
  if (abstractProject instanceof Project) {
    Project project = (Project) abstractProject;
    ViolationsPublisher publisher = (ViolationsPublisher) project.getPublisher(ViolationsPublisher.DESCRIPTOR);
    return publisher == null ? null : publisher.getConfig();
  }
  return null;
}

代码示例来源:origin: org.jenkins-ci.plugins/violations

/**
 * get the configuration for this job.
 * @return the configuration of the job.
 */
public ViolationsConfig getLiveConfig() {
  AbstractProject<?, ?> abstractProject = build.getProject();
  AbstractProject notQuestion = (AbstractProject) abstractProject;
  if (abstractProject instanceof Project) {
    Project project = (Project) abstractProject;
    ViolationsPublisher publisher
      = (ViolationsPublisher) project.getPublisher(
        ViolationsPublisher.DESCRIPTOR);
    return publisher == null
      ? null
      : publisher.getConfig();
    /** Remove the following as it cannot be uesed in a slave
  } else if (notQuestion instanceof MavenModule) {
    MavenModule mavenModule = (MavenModule) notQuestion;
    ViolationsMavenReporter reporter
      = (ViolationsMavenReporter) mavenModule.getReporters().
      get(ViolationsMavenReporter.DESCRIPTOR);
    return reporter == null
      ? null
      : reporter.getConfig();
      /**/
  }
  return null;
}

代码示例来源:origin: org.jvnet.hudson.plugins/violations

/**
 * get the configuration for this job.
 * @return the configuration of the job.
 */
public ViolationsConfig getLiveConfig() {
  AbstractProject<?, ?> abstractProject = build.getProject();
  AbstractProject notQuestion = (AbstractProject) abstractProject;
  if (abstractProject instanceof Project) {
    Project project = (Project) abstractProject;
    ViolationsPublisher publisher
      = (ViolationsPublisher) project.getPublisher(
        ViolationsPublisher.DESCRIPTOR);
    return publisher == null
      ? null
      : publisher.getConfig();
    /** Remove the following as it cannot be uesed in a slave
  } else if (notQuestion instanceof MavenModule) {
    MavenModule mavenModule = (MavenModule) notQuestion;
    ViolationsMavenReporter reporter
      = (ViolationsMavenReporter) mavenModule.getReporters().
      get(ViolationsMavenReporter.DESCRIPTOR);
    return reporter == null
      ? null
      : reporter.getConfig();
      /**/
  }
  return null;
}

代码示例来源:origin: org.jvnet.hudson.plugins/ivy

continue;
IvyBuildTrigger t = (IvyBuildTrigger) p.getPublisher(DESCRIPTOR);
if (t != null) {
  ModuleDescriptor m;

代码示例来源:origin: org.jenkins-ci.plugins/ivy

continue;
IvyBuildTrigger t = (IvyBuildTrigger) p.getPublisher(DESCRIPTOR);
if (t != null) {
  ModuleDescriptor m;

代码示例来源:origin: org.hudsonci.plugins/ivy

continue;
IvyBuildTrigger t = (IvyBuildTrigger) p.getPublisher(DESCRIPTOR);
if (t != null) {
  ModuleDescriptor m;

代码示例来源:origin: org.jvnet.hudson.plugins/ivy

IvyBuildTrigger t = (IvyBuildTrigger) candidate.getPublisher(DESCRIPTOR);
boolean captures = (t != null); // check again in case candidate reconfigured against race condition
if (captures && DESCRIPTOR.isExtendedVersionMatching()) {

代码示例来源:origin: org.hudsonci.plugins/ivy

IvyBuildTrigger t = (IvyBuildTrigger) candidate.getPublisher(DESCRIPTOR);
boolean captures = (t != null); // check again in case candidate reconfigured against race condition
if (captures && DESCRIPTOR.isExtendedVersionMatching()) {

代码示例来源:origin: org.jenkins-ci.plugins/ivy

IvyBuildTrigger t = (IvyBuildTrigger) candidate.getPublisher(DESCRIPTOR);
boolean captures = (t != null); // check again in case candidate reconfigured against race condition
if (captures && DESCRIPTOR.isExtendedVersionMatching()) {

代码示例来源:origin: org.jenkins-ci.plugins/ivy

IvyBuildTrigger t = (IvyBuildTrigger) p.getPublisher(DESCRIPTOR);

代码示例来源:origin: org.jvnet.hudson.plugins/ivy

IvyBuildTrigger t = (IvyBuildTrigger) p.getPublisher(DESCRIPTOR);

代码示例来源:origin: org.hudsonci.plugins/ivy

IvyBuildTrigger t = (IvyBuildTrigger) p.getPublisher(DESCRIPTOR);

相关文章