Record Class FinalizeOutcome

java.lang.Object
java.lang.Record
network.ike.plugin.release.finalize.FinalizeOutcome
Record Components:
tagPushed - true when git push origin v<version> succeeded
mainPushed - true when git push origin main succeeded
githubReleaseAttempted - true when GitHub Release creation was attempted; the subprocess itself may have logged a warning and continued

public record FinalizeOutcome(boolean tagPushed, boolean mainPushed, boolean githubReleaseAttempted) extends Record
Outcome of the FinalizePhase — the last release steps that make the release externally visible beyond Nexus.

Tracks whether the tag and main pushes succeeded and whether a GitHub Release creation was attempted (failure of the gh release create subprocess is a logged warning, not an exception — the release is already shipped to Nexus by the time FinalizePhase runs).

Carved out of ReleaseDraftMojo during the Phase 4 Commit 1 (IKE-Network/ike-issues#489). The handoff §6.3 mentions additional fields (siteGenerated, ghPagesPublished, milestoneClosed); those belong to phases or sub-blocks that have not been extracted yet and will be added when those commits land.

  • Constructor Details

    • FinalizeOutcome

      public FinalizeOutcome(boolean tagPushed, boolean mainPushed, boolean githubReleaseAttempted)
      Creates an instance of a FinalizeOutcome record class.
      Parameters:
      tagPushed - the value for the tagPushed record component
      mainPushed - the value for the mainPushed record component
      githubReleaseAttempted - the value for the githubReleaseAttempted record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • tagPushed

      public boolean tagPushed()
      Returns the value of the tagPushed record component.
      Returns:
      the value of the tagPushed record component
    • mainPushed

      public boolean mainPushed()
      Returns the value of the mainPushed record component.
      Returns:
      the value of the mainPushed record component
    • githubReleaseAttempted

      public boolean githubReleaseAttempted()
      Returns the value of the githubReleaseAttempted record component.
      Returns:
      the value of the githubReleaseAttempted record component