Add missing condition on what version is upgraded to
@@ -182,6 +182,7 @@ public class DeploymentApiHandler extends LoggingRequestHandler {
private Optional<JobStatus> lastDeployingTo(Version version, Application application) {
return JobList.from(application)
.upgrading()
+ .lastTriggered().on(version)
.asList().stream()
.max(comparing(job -> job.lastTriggered().get().at()));
}
