Class UntrustedBuildReason


  • public abstract class UntrustedBuildReason
    extends Object
    • 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 untrusted
        waiting - 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 untrusted
        id - unique id of the reason, reasons can have different description, but will be grouped(in ui, etc.) by id
        description - 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()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object