refactoring doJenkins.