Keep revision target when forcing version target
@@ -688,7 +688,8 @@ public class ApplicationApiHandler extends LoggingRequestHandler {
ApplicationId id = ApplicationId.from(tenantName, applicationName, "default");
controller.applications().lockOrThrow(id, application -> {
- controller.applications().deploymentTrigger().triggerChange(application.get().id(), Change.of(version));
+ controller.applications().deploymentTrigger().triggerChange(application.get().id(),
+ application.get().change().with(version));
});
return new MessageResponse("Triggered deployment of application '" + id + "' on version " + version);
}
