Donald Trump has indicated that bringing the Ukraine war to an end is one of his foreign policy priorities.