This is perfectly fine copy of gradle example - I used it with Jenkins.