本文整理了Java中hudson.model.Run.getTruncatedDescription
方法的一些代码示例,展示了Run.getTruncatedDescription
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Run.getTruncatedDescription
方法的具体详情如下:
包路径:hudson.model.Run
类名称:Run
方法名:getTruncatedDescription
[英]Returns the length-limited description.
[中]返回长度有限的描述。
代码示例来源:origin: org.eclipse.hudson/hudson-core
@Override
public String getTruncatedDescription() {
return Run.getTruncatedDescription(description);
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Returns the length-limited description.
*
* @return The length-limited description.
*/
final public String getTruncatedDescription() {
return getTruncatedDescription(description);
}
代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper
public String superGetTruncatedDescription() {
return super.getTruncatedDescription();
}
代码示例来源:origin: jenkinsci/plot-plugin
/**
* Returns a trimmed description string for the build specified by the given
* build number.
*/
private String descriptionForBuild(int buildNum) {
Run r = project.getBuildByNumber(buildNum);
if (r != null) {
String tip = r.getTruncatedDescription();
if (tip != null) {
return tip.replaceAll("<p> *|<br> *", ", ");
}
}
return null;
}
代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper
@Override
public String getTruncatedDescription() {
initPython();
if (pexec.isImplemented(19)) {
return (String) pexec.execPython("get_truncated_description");
} else {
return super.getTruncatedDescription();
}
}
内容来源于网络,如有侵权,请联系作者删除!