Class BetterThanOrEqualBuildResult

    • Constructor Detail

      • BetterThanOrEqualBuildResult

        public BetterThanOrEqualBuildResult()
    • Method Detail

      • setResult

        public void setResult​(String result)
      • getResult

        public String getResult()
      • matches

        public boolean matches​(@NonNull
                               Run<?,​?> run)
        Description copied from class: ConditionalResult
        If matches, will be used to set state
        Specified by:
        matches in class ConditionalResult
        run - to check against
        matches if run result better than or equal to selected
      • betterThanOrEqualTo

        public static BetterThanOrEqualBuildResult betterThanOrEqualTo​(Result result,
                                                                       org.kohsuke.github.GHCommitState state,
                                                                       String msg)
        Convenient way to reuse logic of checking for the build status
        result - to check against
        state - state to set
        msg - message to set. Can contain env vars
        new instance of this conditional result