本文整理了Java中hudson.model.Messages.BallColor_Failed()
方法的一些代码示例,展示了Messages.BallColor_Failed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Messages.BallColor_Failed()
方法的具体详情如下:
包路径:hudson.model.Messages
类名称: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());
}
}
内容来源于网络,如有侵权,请联系作者删除!