refactor jenkins driver