I don't believe that he ever intended that there would be a strike. The consequences such as higher oil prices, and a rising death toll meant that it was a bad political play. I think he understood this from the beginning, and he used it to test his so-called advisers and aids, and to help discover who was leaking information. He has also used it to help maintain his image as a kind and compassionate man.
@JetCash of course he never intended to strike them hes a businessman, and knew very well that a strike would hurt Americas interest more than it would hurt Iran. Trump is all about words but never following them with actions when it comes to war, remember North Korea after all words exchanged he didnt strike them. I dont believe his claim that civilians would die hence he aborted the mission, maybe youre right it was ploy to find out who was leaking the data.