private Object getBuildStatusDescription()

in command.line/java/com/jetbrains/teamcity/command/RemoteRun.java [465:490]


  private Object getBuildStatusDescription(final UserChangeStatus currentStatus) {

    if (UserChangeStatus.CANCELED == currentStatus) {
      return getMsg("RemoteRun.UserChangeStatus.CANCELED");

    } else if (UserChangeStatus.CHECKED == currentStatus) {
      return getMsg("RemoteRun.UserChangeStatus.CHECKED");

    } else if (UserChangeStatus.FAILED == currentStatus) {
      return getMsg("RemoteRun.UserChangeStatus.FAILED");

    } else if (UserChangeStatus.FAILED_WITH_RESPONSIBLE == currentStatus) {
      return getMsg("RemoteRun.UserChangeStatus.FAILED_WITH_RESPONSIBLE");

    } else if (UserChangeStatus.PENDING == currentStatus) {
      return getMsg("RemoteRun.UserChangeStatus.PENDING");

    } else if (UserChangeStatus.RUNNING_FAILED == currentStatus) {
      return getMsg("RemoteRun.UserChangeStatus.RUNNING_FAILED");

    } else if (UserChangeStatus.RUNNING_SUCCESSFULY == currentStatus) {
      return getMsg("RemoteRun.UserChangeStatus.RUNNING_SUCCESSFULLY");

    }
    return currentStatus;
  }