Class DecoratedResult

    • Method Detail

      • decorateChainResult

        @Nullable
        public static @Nullable DecoratedResult decorateChainResult​(@NotNull
                                                                    @NotNull PlanExecutionManager planExecutionManager,
                                                                    @NotNull
                                                                    @NotNull ChainResultsSummary resultsSummary,
                                                                    @NotNull
                                                                    @NotNull DecoratedPlan decoratedPlan,
                                                                    @NotNull
                                                                    @NotNull DecoratedNavObjectFactory decoratedNavObjectFactory)
        Parameters:
        resultsSummary - summary to decorate
        decoratedPlan - decorated plan the results summary is a result for. Must have the same key.
        decoratedNavObjectFactory -
        Returns:
        a contextual decorator around resultsSummary or null if the job is an orphan.
        Throws:
        IllegalArgumentException - if the resultsSummary and decoratedPlan do not match.
      • getDescription

        public String getDescription()
      • getType

        @NotNull
        public @NotNull String getType()
        Specified by:
        getType in interface DecoratedNavObject
        Returns:
        plantype associated with this object.
      • isResult

        public boolean isResult()
        Specified by:
        isResult in interface DecoratedNavObject
        Returns:
        true if the nav object represents a result otherwise false
      • replaceKey

        @Nullable
        public @Nullable String replaceKey​(String url,
                                           DecoratedNavObject originalObject)
        Description copied from interface: DecoratedNavObject
        Given an existing url (may be directly from the originalObject or may be with a static ${planKey} reference) generate the new url for this object
        Specified by:
        replaceKey in interface DecoratedNavObject
        Parameters:
        url - - to manipulate
        originalObject - - the object the original url may have belonged to
        Returns:
        the new url referencing this object
      • getPlanKey

        public String getPlanKey()
      • getBuildNumber

        public int getBuildNumber()
      • getProjectKey

        public String getProjectKey()
      • getProjectName

        public String getProjectName()
      • getFullName

        public String getFullName()
      • getStageResults

        public abstract com.google.common.collect.ImmutableList<DecoratedStageResult> getStageResults()
      • getBuildDate

        public Date getBuildDate()
      • getBranchName

        @Nullable
        public @Nullable String getBranchName()
      • getLinkedJiraIssue

        @Nullable
        public @Nullable String getLinkedJiraIssue()
      • isRemoteJiraLinkRequired

        public boolean isRemoteJiraLinkRequired()
      • isSuspendedFromBuilding

        public boolean isSuspendedFromBuilding()