hudson.model.AbstractBuild.getDisplayName()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(101)

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

AbstractBuild.getDisplayName介绍

暂无

代码示例

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

@Override
  public String toString() {
    return build.getDisplayName();
  }
}

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

@Override
  public String toString() {
    return build.getDisplayName();
  }
}

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

@Override
  public String toString() {
    return build.getDisplayName();
  }
}

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

@Override
  public String toString() {
    return build.getDisplayName();
  }
}

代码示例来源:origin: org.hudsonci.plugins/jfreechart-plugin

@Override
  public String toString() {
    return build.getDisplayName();
  }
}

代码示例来源:origin: jlewallen/jenkins-hipchat-plugin

private MessageBuilder startMessage() {
  message.append(build.getProject().getDisplayName());
  message.append(" - ");
  message.append(build.getDisplayName());
  message.append(" ");
  return this;
}

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

@Override
  public String getToolTip(int row, int column) {
    return o.getOwner().getDisplayName() + " : " + o.getDurationString();
  }
}

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

@Override
  public String getToolTip(int row, int column) {
    return o.getOwner().getDisplayName() + " : " + o.getDurationString();
  }
}

代码示例来源:origin: org.hudsonci.plugins/instant-messaging

@Override
public String buildStartMessage(IMPublisher publisher, AbstractBuild<?, ?> build, BuildListener listener) throws IOException, InterruptedException {
  return Messages.SummaryOnlyBuildToChatNotifier_StartMessage(build.getDisplayName(),getProjectName(build));
}

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

@Override
public void failed() {
  String pic = "http://www.iconsdb.com/icons/preview/soylent-red/x-mark-3-xxl.png";
  String title = String.format("%s%s构建失败", build.getProject().getDisplayName(), build.getDisplayName());
  String content = String.format("项目[%s%s]构建失败, summary:%s, duration:%s", build.getProject().getDisplayName(), build.getDisplayName(), build.getBuildStatusSummary().message, build.getDurationString());
  String link = getBuildUrl();
  logger.info(link);
  if (onFailed) {
    logger.info("send link msg from " + listener.toString());
    sendLinkMessage(link, content, title, pic);
  }
}

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

@Override
public void abort() {
  String pic = "http://www.iconsdb.com/icons/preview/soylent-red/x-mark-3-xxl.png";
  String title = String.format("%s%s构建中断", build.getProject().getDisplayName(), build.getDisplayName());
  String content = String.format("项目[%s%s]构建中断, summary:%s, duration:%s", build.getProject().getDisplayName(), build.getDisplayName(), build.getBuildStatusSummary().message, build.getDurationString());
  String link = getBuildUrl();
  logger.info(link);
  if (onAbort) {
    logger.info("send link msg from " + listener.toString());
    sendLinkMessage(link, content, title, pic);
  }
}

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

@Override
public void success() {
  String pic = "http://icons.iconarchive.com/icons/paomedia/small-n-flat/1024/sign-check-icon.png";
  String title = String.format("%s%s构建成功", build.getProject().getDisplayName(), build.getDisplayName());
  String content = String.format("项目[%s%s]构建成功, summary:%s, duration:%s", build.getProject().getDisplayName(), build.getDisplayName(), build.getBuildStatusSummary().message, build.getDurationString());
  String link = getBuildUrl();
  logger.info(link);
  if (onSuccess) {
    logger.info("send link msg from " + listener.toString());
    sendLinkMessage(link, content, title, pic);
  }
}

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

@Override
  public String generateToolTip(CategoryDataset dataset, int row,
      int column) {
    ChartLabel label = (ChartLabel) dataset.getColumnKey(column);
    return label.o.getOwner().getDisplayName() + " : "
        + label.o.getDurationString();
  }
};

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

@Override
    public String toString() {
      String l = o.getOwner().getDisplayName();
      String s = o.getOwner().getBuiltOnStr();
      if (s != null)
        l += ' ' + s;
      return l;
//            return o.getDisplayName() + " " + o.getOwner().getDisplayName();
    }

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

@Override
    public String toString() {
      String l = o.getOwner().getDisplayName();
      String s = o.getOwner().getBuiltOnStr();
      if (s != null) {
        l += ' ' + s;
      }
      return l;
//            return o.getDisplayName() + " " + o.getOwner().getDisplayName();
    }

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

@Override
    public String toString() {
      String l = o.getOwner().getDisplayName();
      String s = o.getOwner().getBuiltOnStr();
      if (s != null)
        l += ' ' + s;
      return l;
//            return o.getDisplayName() + " " + o.getOwner().getDisplayName();
    }

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

@Override
  public String generateToolTip(CategoryDataset dataset, int row,
      int column) {
    ChartLabel label = (ChartLabel) dataset.getColumnKey(column);
    return label.o.getOwner().getDisplayName() + " : "
        + label.o.getDurationString();
  }
};

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

@Override
    public String toString() {
      String l = o.getOwner().getDisplayName();
      String s = o.getOwner().getBuiltOnStr();
      if (s != null) {
        l += ' ' + s;
      }
      return l;
//            return o.getDisplayName() + " " + o.getOwner().getDisplayName();
    }

代码示例来源:origin: Diabol/delivery-pipeline-plugin

protected Pipeline pipelineOf(AbstractBuild firstBuild, AbstractProject lastProject, String pipeLineTimestamp,
               Set<UserInfo> contributors, List<Stage> pipelineStages) {
  return new Pipeline(
      getName(),
      firstBuild.getProject(),
      lastProject,
      firstBuild.getDisplayName(),
      pipeLineTimestamp,
      TriggerCause.getTriggeredBy(firstBuild.getProject(), firstBuild),
      contributors,
      pipelineStages,
      false);
}

代码示例来源:origin: Diabol/delivery-pipeline-plugin

private static String getUpstreamCauseString(Cause.UpstreamCause upstreamCause) {
  AbstractProject upstreamProject = JenkinsUtil.getInstance().getItem(upstreamCause.getUpstreamProject(),
      JenkinsUtil.getInstance(), AbstractProject.class);
  String causeString = "upstream project";
  if (upstreamProject != null) {
    causeString += " " + upstreamProject.getDisplayName();
    AbstractBuild upstreamBuild = upstreamProject.getBuildByNumber(upstreamCause.getUpstreamBuild());
    if (upstreamBuild != null) {
      causeString += " build " + upstreamBuild.getDisplayName();
    }
  }
  return causeString;
}

相关文章

微信公众号

最新文章

更多

AbstractBuild类方法