Class BetterThanOrEqualBuildResult

    • Constructor Detail

      • BetterThanOrEqualBuildResult

        @DataBoundConstructor
        public BetterThanOrEqualBuildResult()
    • Method Detail

      • setResult

        @DataBoundSetter
        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
        Parameters:
        run - to check against
        Returns:
        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
        Parameters:
        result - to check against
        state - state to set
        msg - message to set. Can contain env vars
        Returns:
        new instance of this conditional result