Refactor jenkins provider