Fixed the errors in jenkins build scripts