I think considering the vast majority of the trucks where basically empty (from various reports) that it was a win win scenario for Putin. He gets the trucks in and out and he gets a propaganda victory at home.
But that is the loose scenario, the real win scenario was bait, which didn't work. We know that Russia has been operating in Ukraine, what he needed was a pretext to do it openly. I think he was hoping the Ukrainians would use force against it.
As such all the troops massed on the border could use that as a pretext to operate openly instead of as unmarked terrorists and criminals that they are doing now.