hudson.model.Messages.BallColor_Failed()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(161)

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

Messages.BallColor_Failed介绍

[英]Failed
[中]失败

代码示例

代码示例来源:origin: org.hudsonci.plugins/analysis-core

/**
 * Returns the icon for the build result.
 *
 * @return the icon for the build result
 */
public String getResultIcon() {
  String message = "<img src=\"" + Hudson.RESOURCE_PATH + "/images/16x16/%s\" alt=\"%s\" title=\"%s\"/>";
  if (pluginResult == Result.FAILURE) {
    return String.format(message, FAILED,
        hudson.model.Messages.BallColor_Failed(), hudson.model.Messages.BallColor_Failed());
  }
  else if (pluginResult == Result.UNSTABLE) {
    return String.format(message, UNSTABLE,
        hudson.model.Messages.BallColor_Unstable(), hudson.model.Messages.BallColor_Unstable());
  }
  else {
    return String.format(message, SUCCESS,
        hudson.model.Messages.BallColor_Success(), hudson.model.Messages.BallColor_Success());
  }
}

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

/**
 * Returns the icon for the build result.
 *
 * @return the icon for the build result
 */
public String getResultIcon() {
  String message = "<img src=\"" + Stapler.getCurrentRequest().getContextPath() + Jenkins.RESOURCE_PATH
      + "/images/16x16/%s\" alt=\"%s\" title=\"%s\"/>";
  if (pluginResult == Result.FAILURE) {
    return String.format(message, FAILED,
        hudson.model.Messages.BallColor_Failed(), hudson.model.Messages.BallColor_Failed());
  }
  else if (pluginResult == Result.UNSTABLE) {
    return String.format(message, UNSTABLE,
        hudson.model.Messages.BallColor_Unstable(), hudson.model.Messages.BallColor_Unstable());
  }
  else {
    return String.format(message, SUCCESS,
        hudson.model.Messages.BallColor_Success(), hudson.model.Messages.BallColor_Success());
  }
}

相关文章

Messages类方法