JENKINS-18937: Add dsl method to add timestamps

I also added a buildWrapper block to add dsl methods like this. There are already some dsl methods which go there, these should probably be moved.