fixed JENKINS-16931 for Maven jobs

It's probably not ideal to have two separate job templates for free-style jobs and for maven jobs.