Skip to content

Commit

Permalink
Capture all changes for Tag body of GA version.
Browse files Browse the repository at this point in the history
  • Loading branch information
christophstrobl committed Nov 17, 2023
1 parent 61cc755 commit 2079a55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,10 @@ public TrainIteration getPreviousIteration(TrainIteration trainIteration) {
return trainToUse.getIteration(Iteration.GA);
}

if(trainIteration.getIteration().isGAIteration()) {
return getPreviousTrain(trainIteration).getIteration(Iteration.GA);
}

Optional<TrainIteration> mostRecentBefore = getTags(Projects.BUILD) //
.filter((tag, ti) -> ti.getTrain().equals(trainIteration.getTrain())) //
.find((tag, iteration) -> iteration.getIteration().compareTo(trainIteration.getIteration()) < 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ void shouldDeterminePreviousIterationFromGA() throws Exception {

TrainIteration hopperRc1 = gitOperations.getPreviousIteration(ReleaseTrains.HOPPER.getIteration(Iteration.GA));

assertThat(hopperRc1.getTrain()).isEqualTo(ReleaseTrains.HOPPER);
assertThat(hopperRc1.getIteration()).isEqualTo(Iteration.RC1);
assertThat(hopperRc1.getTrain()).isEqualTo(ReleaseTrains.GOSLING);
assertThat(hopperRc1.getIteration()).isEqualTo(Iteration.GA);

TrainIteration hopperM1 = gitOperations.getPreviousIteration(ReleaseTrains.HOPPER.getIteration(Iteration.RC1));

Expand Down

0 comments on commit 2079a55

Please sign in to comment.