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

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

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

Messages.Cause_UpstreamCause_ShortDescription介绍

[英]Started by upstream project "{0}" build number {1}
[中]由上游项目“{0}”生成号{1}启动

代码示例

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

@Override
public String getShortDescription() {
  return Messages.Cause_UpstreamCause_ShortDescription(upstreamProject, upstreamBuild);
}

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

private void print(TaskListener listener, int depth) {
  indent(listener, depth);
  listener.getLogger().println(
    Messages.Cause_UpstreamCause_ShortDescription(
      ModelHyperlinkNote.encodeTo('/' + upstreamUrl, upstreamProject),
      ModelHyperlinkNote.encodeTo('/'+upstreamUrl+upstreamBuild, Integer.toString(upstreamBuild)))
  );
  if (upstreamCauses != null && !upstreamCauses.isEmpty()) {
    indent(listener, depth);
    listener.getLogger().println(Messages.Cause_UpstreamCause_CausedBy());
    for (Cause cause : upstreamCauses) {
      if (cause instanceof UpstreamCause) {
        ((UpstreamCause) cause).print(listener, depth + 1);
      } else {
        indent(listener, depth + 1);
        cause.print(listener);
      }
    }
  }
}

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

@Override
public String getShortDescription() {
  return Messages.Cause_UpstreamCause_ShortDescription(upstreamProject, upstreamBuild);
}

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

@Override
public String getShortDescription() {
  return Messages.Cause_UpstreamCause_ShortDescription(upstreamProject, upstreamBuild);
}

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

@Override
public String getShortDescription() {
  return Messages.Cause_UpstreamCause_ShortDescription(upstreamProject, upstreamBuild);
}

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

@Override
public String getShortDescription() {
  return Messages.Cause_UpstreamCause_ShortDescription(upstreamProject, upstreamBuild);
}

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

@Override
public String getShortDescription() {
  return Messages.Cause_UpstreamCause_ShortDescription(upstreamProject, upstreamBuild);
}

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

@Override
public void print(TaskListener listener) {
  listener.getLogger().println(
    Messages.Cause_UpstreamCause_ShortDescription(
      HyperlinkNote.encodeTo('/'+upstreamUrl, upstreamProject),
      HyperlinkNote.encodeTo('/'+upstreamUrl+upstreamBuild, Integer.toString(upstreamBuild)))
  );
}

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

@Override
public void print(TaskListener listener) {
  listener.getLogger().println(
    Messages.Cause_UpstreamCause_ShortDescription(
      HyperlinkNote.encodeTo('/'+upstreamUrl, upstreamProject),
      HyperlinkNote.encodeTo('/'+upstreamUrl+upstreamBuild, Integer.toString(upstreamBuild)))
  );
}

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

@Override
public void print(TaskListener listener) {
  listener.getLogger().println(
    Messages.Cause_UpstreamCause_ShortDescription(
      HyperlinkNote.encodeTo('/'+upstreamUrl, upstreamProject),
      HyperlinkNote.encodeTo('/'+upstreamUrl+upstreamBuild, Integer.toString(upstreamBuild)))
  );
}

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

@Override
public void print(TaskListener listener) {
  listener.getLogger().println(
      Messages.Cause_UpstreamCause_ShortDescription(
      HyperlinkNote.encodeTo('/' + upstreamUrl, upstreamProject),
      HyperlinkNote.encodeTo('/' + upstreamUrl + upstreamBuild, Integer.toString(upstreamBuild))));
}

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

private void print(TaskListener listener, int depth) {
  indent(listener, depth);
  listener.getLogger().println(
    Messages.Cause_UpstreamCause_ShortDescription(
      ModelHyperlinkNote.encodeTo('/' + upstreamUrl, upstreamProject),
      ModelHyperlinkNote.encodeTo('/'+upstreamUrl+upstreamBuild, Integer.toString(upstreamBuild)))
  );
  if (upstreamCauses != null && !upstreamCauses.isEmpty()) {
    indent(listener, depth);
    listener.getLogger().println(Messages.Cause_UpstreamCause_CausedBy());
    for (Cause cause : upstreamCauses) {
      if (cause instanceof UpstreamCause) {
        ((UpstreamCause) cause).print(listener, depth + 1);
      } else {
        indent(listener, depth + 1);
        cause.print(listener);
      }
    }
  }
}

相关文章

Messages类方法