simplify code to manage jenkins