hudson.model.Run.writeWholeLogTo()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(87)

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

Run.writeWholeLogTo介绍

[英]Writes the complete log from the start to finish to the OutputStream. If someone is still writing to the log, this method will not return until the whole log file gets written out.

The method does not close the OutputStream.
[中]将完整日志从头到尾写入OutputStream。如果仍有人在写入日志,则在整个日志文件被写入之前,此方法不会返回。
该方法不会关闭OutputStream。

代码示例

代码示例来源:origin: jenkinsci/jenkins

for (int i=0;i<=retryCnt;) {
  try {
    b.writeWholeLogTo(stdout);
    break;

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

public void superWriteWholeLogTo(OutputStream out) throws IOException, InterruptedException {
  super.writeWholeLogTo(out);
}

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

@Override
public void writeWholeLogTo(OutputStream out) throws IOException, InterruptedException {
  initPython();
  if (pexec.isImplemented(51)) {
    pexec.execPythonVoid("write_whole_log_to", out);
  } else {
    super.writeWholeLogTo(out);
  }
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

for (int i=0;i<=retryCnt;) {
  try {
    b.writeWholeLogTo(stdout);
    break;

相关文章

微信公众号

最新文章

更多

Run类方法