Class UntrustedBuildReason
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.untrustedBuilds.UntrustedBuildReason
-
public abstract class UntrustedBuildReason extends Object
-
-
Constructor Summary
Constructors Constructor Description UntrustedBuildReason(boolean unknown, boolean waiting, String id)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
String
getId()
abstract String
getLogDescription()
abstract String
getUiDescription(boolean plural)
String
getUiUrl()
int
hashCode()
boolean
isUnknown()
boolean
isWaiting()
-
-
-
Constructor Detail
-
UntrustedBuildReason
public UntrustedBuildReason(boolean unknown, boolean waiting, @NotNull String id)
- Parameters:
unknown
- true if the untrusted status of the build can't be determined for unexpected reason, the build is still considered untrustedwaiting
- true if the untrusted status of the build can't be determined because some information is not available at the moment, but will be in the future. The build is not considered untrusted and won't be started until the untrusted status is determined, but the notification won't be sent and the information about the build won't be logged even if it will be detected as untrustedid
- unique id of the reason, reasons can have different description, but will be grouped(in ui, etc.) by iddescription
- description of the wait reason that will be used in logs
-
-
Method Detail
-
getLogDescription
@NotNull public abstract String getLogDescription()
- Returns:
- untrusted reason description for logs
-
getUiDescription
@NotNull public abstract String getUiDescription(boolean plural)
- Returns:
- the reason that will be displayed in ui. Should continue the phrase '1 build ' or '5 builds are considered untrusted' in case if plural is true. e.g. '1 build is considered untrusted because it processes unsafe changes'
-
getUiUrl
@Nullable public String getUiUrl()
- Returns:
- some url that will be displayed with the description
-
getId
@NotNull public String getId()
-
isUnknown
public boolean isUnknown()
-
isWaiting
public boolean isWaiting()
-
-