Record Class FinalizeOutcome
java.lang.Object
java.lang.Record
network.ike.plugin.release.finalize.FinalizeOutcome
- Record Components:
tagPushed-truewhengit push origin v<version>succeededmainPushed-truewhengit push origin mainsucceededgithubReleaseAttempted-truewhen 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 Summary
ConstructorsConstructorDescriptionFinalizeOutcome(boolean tagPushed, boolean mainPushed, boolean githubReleaseAttempted) Creates an instance of aFinalizeOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thegithubReleaseAttemptedrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themainPushedrecord component.booleanReturns the value of thetagPushedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FinalizeOutcome
public FinalizeOutcome(boolean tagPushed, boolean mainPushed, boolean githubReleaseAttempted) Creates an instance of aFinalizeOutcomerecord class.- Parameters:
tagPushed- the value for thetagPushedrecord componentmainPushed- the value for themainPushedrecord componentgithubReleaseAttempted- the value for thegithubReleaseAttemptedrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 thecomparemethod from their corresponding wrapper classes. -
tagPushed
-
mainPushed
public boolean mainPushed()Returns the value of themainPushedrecord component.- Returns:
- the value of the
mainPushedrecord component
-
githubReleaseAttempted
public boolean githubReleaseAttempted()Returns the value of thegithubReleaseAttemptedrecord component.- Returns:
- the value of the
githubReleaseAttemptedrecord component
-