replacing FreeStyleBuild with AbstractBuild to support Maven type builds.