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

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

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

Messages.Run_InProgressDuration介绍

[英]{0} and counting
[中]{0}和计数

代码示例

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

/**
 * Gets the string that says how long the build took to run.
 */
public @Nonnull String getDurationString() {
  if (hasntStartedYet()) {
    return Messages.Run_NotStartedYet();
  } else if (isBuilding()) {
    return Messages.Run_InProgressDuration(
        Util.getTimeSpanString(System.currentTimeMillis()-startTime));
  }
  return Util.getTimeSpanString(duration);
}

代码示例来源:origin: org.jenkins-ci.plugins/cloudbees-folder

@Nonnull
public String getDurationString() {
  if (isBuilding()) {
    return hudson.model.Messages.Run_InProgressDuration(Util.getTimeSpanString(System.currentTimeMillis() - timestamp));
  } else {
    return Util.getTimeSpanString(duration);
  }
}

代码示例来源:origin: jenkinsci/cloudbees-folder-plugin

@Nonnull
public String getDurationString() {
  if (isBuilding()) {
    return hudson.model.Messages.Run_InProgressDuration(Util.getTimeSpanString(System.currentTimeMillis() - timestamp));
  } else {
    return Util.getTimeSpanString(duration);
  }
}

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

/**
 * Gets the string that says how long the build took to run.
 */
public String getDurationString() {
  if(isBuilding())
    return Messages.Run_InProgressDuration(
        Util.getTimeSpanString(System.currentTimeMillis()-timestamp));
  return Util.getTimeSpanString(duration);
}

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

/**
 * Gets the string that says how long the build took to run.
 */
public String getDurationString() {
  if(isBuilding())
    return Messages.Run_InProgressDuration(
        Util.getTimeSpanString(System.currentTimeMillis()-timestamp));
  return Util.getTimeSpanString(duration);
}

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

/**
 * Gets the string that says how long the build took to run.
 */
public String getDurationString() {
  if (isBuilding()) {
    return Messages.Run_InProgressDuration(
        Util.getTimeSpanString(System.currentTimeMillis() - timestamp));
  }
  return Util.getTimeSpanString(duration);
}

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

/**
 * Gets the string that says how long the build took to run.
 */
public String getDurationString() {
  if(isBuilding())
    return Messages.Run_InProgressDuration(
        Util.getTimeSpanString(System.currentTimeMillis()-timestamp));
  return Util.getTimeSpanString(duration);
}

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

/**
 * Gets the string that says how long the build took to run.
 */
public @Nonnull String getDurationString() {
  if (hasntStartedYet()) {
    return Messages.Run_NotStartedYet();
  } else if (isBuilding()) {
    return Messages.Run_InProgressDuration(
        Util.getTimeSpanString(System.currentTimeMillis()-startTime));
  }
  return Util.getTimeSpanString(duration);
}

相关文章

Messages类方法